Skip to content

Commit

Permalink
TEST-modin-project#2616: remove DEFAULT_NPARTITIONS values assigning
Browse files Browse the repository at this point in the history
Signed-off-by: Alexander Myskov <[email protected]>
  • Loading branch information
amyskov committed Jan 15, 2021
1 parent 01fbe9f commit 81d2454
Show file tree
Hide file tree
Showing 18 changed files with 9 additions and 26 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ jobs:
test-internals:
needs: [lint-commit, lint-flake8, lint-black, test-api, test-headers]
runs-on: ubuntu-latest
env:
MODIN_CPUS: 4
name: test-internals
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -197,6 +199,7 @@ jobs:
env:
MODIN_MEMORY: 1000000000
MODIN_TEST_DATASET_SIZE: "small"
MODIN_CPUS: 4
name: Test ${{ matrix.backend }} backend, Python 3.6
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -345,6 +348,7 @@ jobs:
env:
MODIN_ENGINE: ${{matrix.engine}}
MODIN_MEMORY: 1000000000
MODIN_CPUS: 4
name: test-ubuntu (engine ${{matrix.engine}}, python ${{matrix.python-version}})
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -408,6 +412,7 @@ jobs:
MODIN_ENGINE: "python"
MODIN_EXPERIMENTAL: "True"
MODIN_MEMORY: 1000000000
MODIN_CPUS: 4
name: test experimental
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -474,6 +479,7 @@ jobs:
env:
MODIN_ENGINE: ${{matrix.engine}}
MODIN_MEMORY: 1000000000
MODIN_CPUS: 4
name: test-windows
steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
env:
MODIN_MEMORY: 1000000000
MODIN_TEST_DATASET_SIZE: "small"
MODIN_CPUS: 4
name: Test ${{ matrix.backend }} backend, Python 3.6
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -131,6 +132,7 @@ jobs:
env:
MODIN_ENGINE: ${{matrix.engine}}
MODIN_MEMORY: 1000000000
MODIN_CPUS: 4
name: test-ubuntu (engine ${{matrix.engine}}, python ${{matrix.python-version}})
steps:
- uses: actions/checkout@v2
Expand Down Expand Up @@ -197,6 +199,7 @@ jobs:
env:
MODIN_ENGINE: ${{matrix.engine}}
MODIN_MEMORY: 1000000000
MODIN_CPUS: 4
name: test-windows
steps:
- uses: actions/checkout@v2
Expand Down
1 change: 0 additions & 1 deletion modin/pandas/test/dataframe/test_binary.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
create_test_dfs,
)

pd.DEFAULT_NPARTITIONS = 4

# Force matplotlib to not use any Xwindows backend.
matplotlib.use("Agg")
Expand Down
1 change: 0 additions & 1 deletion modin/pandas/test/dataframe/test_default.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
modin_df_almost_equals_pandas,
)

pd.DEFAULT_NPARTITIONS = 4

# Force matplotlib to not use any Xwindows backend.
matplotlib.use("Agg")
Expand Down
1 change: 0 additions & 1 deletion modin/pandas/test/dataframe/test_indexing.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@
eval_general,
)

pd.DEFAULT_NPARTITIONS = 4

# Force matplotlib to not use any Xwindows backend.
matplotlib.use("Agg")
Expand Down
2 changes: 0 additions & 2 deletions modin/pandas/test/dataframe/test_iter.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@
test_data,
)

pd.DEFAULT_NPARTITIONS = 4

# Force matplotlib to not use any Xwindows backend.
matplotlib.use("Agg")

Expand Down
1 change: 0 additions & 1 deletion modin/pandas/test/dataframe/test_join_sort.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
eval_general,
)

pd.DEFAULT_NPARTITIONS = 4

# Force matplotlib to not use any Xwindows backend.
matplotlib.use("Agg")
Expand Down
1 change: 0 additions & 1 deletion modin/pandas/test/dataframe/test_map_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
create_test_dfs,
)

pd.DEFAULT_NPARTITIONS = 4

# Force matplotlib to not use any Xwindows backend.
matplotlib.use("Agg")
Expand Down
2 changes: 0 additions & 2 deletions modin/pandas/test/dataframe/test_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
test_data_diff_dtype,
)

pd.DEFAULT_NPARTITIONS = 4

# Force matplotlib to not use any Xwindows backend.
matplotlib.use("Agg")

Expand Down
1 change: 0 additions & 1 deletion modin/pandas/test/dataframe/test_udf.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
test_data,
)

pd.DEFAULT_NPARTITIONS = 4

# Force matplotlib to not use any Xwindows backend.
matplotlib.use("Agg")
Expand Down
2 changes: 0 additions & 2 deletions modin/pandas/test/dataframe/test_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
test_data_diff_dtype,
)

pd.DEFAULT_NPARTITIONS = 4

# Force matplotlib to not use any Xwindows backend.
matplotlib.use("Agg")

Expand Down
2 changes: 0 additions & 2 deletions modin/pandas/test/test_concat.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
create_test_dfs,
)

pd.DEFAULT_NPARTITIONS = 4


def test_df_concat():
df, df2 = generate_dfs()
Expand Down
2 changes: 0 additions & 2 deletions modin/pandas/test/test_groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
generate_multiindex,
)

pd.DEFAULT_NPARTITIONS = 4


def modin_groupby_equals_pandas(modin_groupby, pandas_groupby):
for g1, g2 in zip(modin_groupby, pandas_groupby):
Expand Down
1 change: 0 additions & 1 deletion modin/pandas/test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
else:
import modin.experimental.pandas as pd

pd.DEFAULT_NPARTITIONS = 4

DATASET_SIZE_DICT = {
"Small": 64,
Expand Down
2 changes: 0 additions & 2 deletions modin/pandas/test/test_rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@

from .utils import df_equals, test_data_values, test_data_keys

pd.DEFAULT_NPARTITIONS = 4


def create_test_series(vals):
if isinstance(vals, dict):
Expand Down
1 change: 0 additions & 1 deletion modin/pandas/test/test_series.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
test_data_diff_dtype,
)

pd.DEFAULT_NPARTITIONS = 4

# Force matplotlib to not use any Xwindows backend.
matplotlib.use("Agg")
Expand Down
4 changes: 0 additions & 4 deletions modin/test/backends/base/test_internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
# ANY KIND, either express or implied. See the License for the specific language
# governing permissions and limitations under the License.

import modin.pandas as pd

import pandas
import pytest

Expand All @@ -22,8 +20,6 @@
df_equals,
)

pd.DEFAULT_NPARTITIONS = 4


@pytest.mark.parametrize("axis", [0, 1])
@pytest.mark.parametrize("item_length", [0, 1, 2])
Expand Down
2 changes: 0 additions & 2 deletions modin/test/backends/pandas/test_internals.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
import modin.pandas as pd
from modin.pandas.test.utils import create_test_dfs

pd.DEFAULT_NPARTITIONS = 4


def test_aligning_blocks():
# Test problem when modin frames have the same number of rows, but different
Expand Down

0 comments on commit 81d2454

Please sign in to comment.