Skip to content

Commit

Permalink
TEST-#6593: adapt tests for pandas 2.1.1 (#6592)
Browse files Browse the repository at this point in the history
Signed-off-by: Anatoly Myachev <[email protected]>
  • Loading branch information
anmyachev authored Sep 21, 2023
1 parent 885e6ea commit 513166f
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 20 deletions.
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 @@ -817,7 +817,6 @@ def comparator(df1, df2):
StorageFormat.get() == "Hdk",
reason="HDK does not support columns with different types",
)
@pytest.mark.xfail(reason="https://github.com/pandas-dev/pandas/issues/54848")
def test_convert_dtypes_multiple_row_partitions():
# Column 0 should have string dtype
modin_part1 = pd.DataFrame(["a"]).convert_dtypes()
Expand Down
1 change: 0 additions & 1 deletion modin/pandas/test/test_general.py
Original file line number Diff line number Diff line change
Expand Up @@ -625,7 +625,6 @@ def test_unique():
reason="https://github.com/modin-project/modin/issues/2896",
)
@pytest.mark.parametrize("normalize, bins, dropna", [(True, 3, False)])
@pytest.mark.xfail(reason="https://github.com/pandas-dev/pandas/issues/54857")
def test_value_counts(normalize, bins, dropna):
# We sort indices for Modin and pandas result because of issue #1650
values = np.array([3, 1, 2, 3, 4, np.nan])
Expand Down
20 changes: 2 additions & 18 deletions modin/pandas/test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -2717,20 +2717,8 @@ def test_fwf_file_colspecs_widths(self, make_fwf_file, kwargs):
"usecols",
[
["a"],
pytest.param(
["a", "b", "d"],
marks=pytest.mark.xfail(
Engine.get() != "Python" and StorageFormat.get() != "Hdk",
reason="https://github.com/pandas-dev/pandas/issues/54868",
),
),
pytest.param(
[0, 1, 3],
marks=pytest.mark.xfail(
Engine.get() != "Python" and StorageFormat.get() != "Hdk",
reason="https://github.com/pandas-dev/pandas/issues/54868",
),
),
["a", "b", "d"],
[0, 1, 3],
],
)
def test_fwf_file_usecols(self, make_fwf_file, usecols):
Expand Down Expand Up @@ -2797,10 +2785,6 @@ def test_fwf_file_chunksize(self, make_fwf_file):
df_equals(modin_df, pd_df)

@pytest.mark.parametrize("nrows", [13, None])
@pytest.mark.xfail(
Engine.get() != "Python" and StorageFormat.get() != "Hdk",
reason="https://github.com/pandas-dev/pandas/issues/54868",
)
def test_fwf_file_skiprows(self, make_fwf_file, nrows):
unique_filename = make_fwf_file()

Expand Down

0 comments on commit 513166f

Please sign in to comment.