Skip to content

fix nightly tests #830

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def test_orc():
check(assert_type(DF.to_orc(path), None), type(None))
with pytest_warns_bounded(
DeprecationWarning,
"Passing a BlockManager to DataFrame is deprecated",
"make_block is deprecated and will be removed",
lower="2.1.99",
):
check(assert_type(read_orc(path), DataFrame), DataFrame)
Expand All @@ -90,7 +90,7 @@ def test_orc_path():
check(assert_type(DF.to_orc(pathlib_path), None), type(None))
with pytest_warns_bounded(
DeprecationWarning,
"Passing a BlockManager to DataFrame is deprecated",
"make_block is deprecated and will be removed",
lower="2.1.99",
):
check(assert_type(read_orc(pathlib_path), DataFrame), DataFrame)
Expand All @@ -105,7 +105,7 @@ def test_orc_buffer():
with open(path, "rb") as file_r:
with pytest_warns_bounded(
DeprecationWarning,
"Passing a BlockManager to DataFrame is deprecated",
"make_block is deprecated and will be removed",
lower="2.1.99",
):
check(assert_type(read_orc(file_r), DataFrame), DataFrame)
Expand All @@ -117,7 +117,7 @@ def test_orc_columns():
check(assert_type(DF.to_orc(path, index=False), None), type(None))
with pytest_warns_bounded(
DeprecationWarning,
"Passing a BlockManager to DataFrame is deprecated",
"make_block is deprecated and will be removed",
lower="2.1.99",
):
check(assert_type(read_orc(path, columns=["a"]), DataFrame), DataFrame)
Expand Down Expand Up @@ -555,7 +555,7 @@ def test_parquet():
check(assert_type(DF.to_parquet(), bytes), bytes)
with pytest_warns_bounded(
DeprecationWarning,
"Passing a BlockManager to DataFrame is deprecated",
"make_block is deprecated and will be removed",
lower="2.1.99",
):
check(assert_type(read_parquet(path), DataFrame), DataFrame)
Expand All @@ -569,7 +569,7 @@ def test_parquet_options():
)
with pytest_warns_bounded(
DeprecationWarning,
"Passing a BlockManager to DataFrame is deprecated",
"make_block is deprecated and will be removed",
lower="2.1.99",
):
check(assert_type(read_parquet(path), DataFrame), DataFrame)
Expand All @@ -580,7 +580,7 @@ def test_feather():
check(assert_type(DF.to_feather(path), None), type(None))
with pytest_warns_bounded(
DeprecationWarning,
"Passing a BlockManager to DataFrame is deprecated",
"make_block is deprecated and will be removed",
lower="2.1.99",
):
check(assert_type(read_feather(path), DataFrame), DataFrame)
Expand All @@ -590,7 +590,7 @@ def test_feather():
bio.seek(0)
with pytest_warns_bounded(
DeprecationWarning,
"Passing a BlockManager to DataFrame is deprecated",
"make_block is deprecated and will be removed",
lower="2.1.99",
):
check(assert_type(read_feather(bio), DataFrame), DataFrame)
Expand Down Expand Up @@ -1437,7 +1437,7 @@ def test_all_read_without_lxml_dtype_backend() -> None:
check(assert_type(DF.to_orc(path), None), type(None))
with pytest_warns_bounded(
DeprecationWarning,
"Passing a BlockManager to DataFrame is deprecated",
"make_block is deprecated and will be removed",
lower="2.1.99",
):
check(
Expand All @@ -1449,7 +1449,7 @@ def test_all_read_without_lxml_dtype_backend() -> None:
check(assert_type(DF.to_feather(path), None), type(None))
with pytest_warns_bounded(
DeprecationWarning,
"Passing a BlockManager to DataFrame is deprecated",
"make_block is deprecated and will be removed",
lower="2.1.99",
):
check(
Expand Down
2 changes: 1 addition & 1 deletion tests/test_pandas.py
Original file line number Diff line number Diff line change
Expand Up @@ -1979,7 +1979,7 @@ def g(x: pd.Series) -> int:
),
pd.DataFrame,
)
with pytest_warns_bounded(FutureWarning, "'M' is deprecated,", lower="2.1.99"):
with pytest_warns_bounded(FutureWarning, "'M' is deprecated", lower="2.1.99"):
check(
assert_type(
pd.pivot_table(
Expand Down