Skip to content

Commit

Permalink
Fix omnisci and use PandasCompatVersion in test_io.
Browse files Browse the repository at this point in the history
Signed-off-by: mvashishtha <mahesh@ponder.io>
  • Loading branch information
mvashishtha committed Oct 7, 2022
1 parent 5750bdc commit 150bee5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions modin/pandas/test/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def test_read_csv_mangle_dupe_cols(self):
pytest.warns(
FutureWarning, match="'mangle_dupe_cols' keyword is deprecated"
)
if version.parse(pandas.__version__) >= version.parse("1.5.0")
if PandasCompatVersion.CURRENT == PandasCompatVersion.LATEST
else _nullcontext()
):
str_non_unique_cols = "col,col,col,col\n5, 6, 7, 8\n9, 10, 11, 12\n"
Expand All @@ -513,10 +513,6 @@ def test_read_csv_mangle_dupe_cols(self):
@pytest.mark.filterwarnings(
"error:.*'mangle_dupe_cols' keyword is deprecated:FutureWarning"
)
@pytest.mark.xfail(
StorageFormat.get() == "Hdk",
reason="processing of duplicated columns in HDK storage format is not supported yet - issue #3080",
)
def test_read_csv_does_not_warn_mangle_dupe_cols_kwarg(self):
with ensure_clean() as unique_filename:
eval_io_from_str(
Expand Down

0 comments on commit 150bee5

Please sign in to comment.