Skip to content

Commit c0ca527

Browse files
authored
fix nightly tests (#830)
1 parent 2cd803a commit c0ca527

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

tests/test_io.py

+10-10
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def test_orc():
7777
check(assert_type(DF.to_orc(path), None), type(None))
7878
with pytest_warns_bounded(
7979
DeprecationWarning,
80-
"Passing a BlockManager to DataFrame is deprecated",
80+
"make_block is deprecated and will be removed",
8181
lower="2.1.99",
8282
):
8383
check(assert_type(read_orc(path), DataFrame), DataFrame)
@@ -90,7 +90,7 @@ def test_orc_path():
9090
check(assert_type(DF.to_orc(pathlib_path), None), type(None))
9191
with pytest_warns_bounded(
9292
DeprecationWarning,
93-
"Passing a BlockManager to DataFrame is deprecated",
93+
"make_block is deprecated and will be removed",
9494
lower="2.1.99",
9595
):
9696
check(assert_type(read_orc(pathlib_path), DataFrame), DataFrame)
@@ -105,7 +105,7 @@ def test_orc_buffer():
105105
with open(path, "rb") as file_r:
106106
with pytest_warns_bounded(
107107
DeprecationWarning,
108-
"Passing a BlockManager to DataFrame is deprecated",
108+
"make_block is deprecated and will be removed",
109109
lower="2.1.99",
110110
):
111111
check(assert_type(read_orc(file_r), DataFrame), DataFrame)
@@ -117,7 +117,7 @@ def test_orc_columns():
117117
check(assert_type(DF.to_orc(path, index=False), None), type(None))
118118
with pytest_warns_bounded(
119119
DeprecationWarning,
120-
"Passing a BlockManager to DataFrame is deprecated",
120+
"make_block is deprecated and will be removed",
121121
lower="2.1.99",
122122
):
123123
check(assert_type(read_orc(path, columns=["a"]), DataFrame), DataFrame)
@@ -555,7 +555,7 @@ def test_parquet():
555555
check(assert_type(DF.to_parquet(), bytes), bytes)
556556
with pytest_warns_bounded(
557557
DeprecationWarning,
558-
"Passing a BlockManager to DataFrame is deprecated",
558+
"make_block is deprecated and will be removed",
559559
lower="2.1.99",
560560
):
561561
check(assert_type(read_parquet(path), DataFrame), DataFrame)
@@ -569,7 +569,7 @@ def test_parquet_options():
569569
)
570570
with pytest_warns_bounded(
571571
DeprecationWarning,
572-
"Passing a BlockManager to DataFrame is deprecated",
572+
"make_block is deprecated and will be removed",
573573
lower="2.1.99",
574574
):
575575
check(assert_type(read_parquet(path), DataFrame), DataFrame)
@@ -580,7 +580,7 @@ def test_feather():
580580
check(assert_type(DF.to_feather(path), None), type(None))
581581
with pytest_warns_bounded(
582582
DeprecationWarning,
583-
"Passing a BlockManager to DataFrame is deprecated",
583+
"make_block is deprecated and will be removed",
584584
lower="2.1.99",
585585
):
586586
check(assert_type(read_feather(path), DataFrame), DataFrame)
@@ -590,7 +590,7 @@ def test_feather():
590590
bio.seek(0)
591591
with pytest_warns_bounded(
592592
DeprecationWarning,
593-
"Passing a BlockManager to DataFrame is deprecated",
593+
"make_block is deprecated and will be removed",
594594
lower="2.1.99",
595595
):
596596
check(assert_type(read_feather(bio), DataFrame), DataFrame)
@@ -1437,7 +1437,7 @@ def test_all_read_without_lxml_dtype_backend() -> None:
14371437
check(assert_type(DF.to_orc(path), None), type(None))
14381438
with pytest_warns_bounded(
14391439
DeprecationWarning,
1440-
"Passing a BlockManager to DataFrame is deprecated",
1440+
"make_block is deprecated and will be removed",
14411441
lower="2.1.99",
14421442
):
14431443
check(
@@ -1449,7 +1449,7 @@ def test_all_read_without_lxml_dtype_backend() -> None:
14491449
check(assert_type(DF.to_feather(path), None), type(None))
14501450
with pytest_warns_bounded(
14511451
DeprecationWarning,
1452-
"Passing a BlockManager to DataFrame is deprecated",
1452+
"make_block is deprecated and will be removed",
14531453
lower="2.1.99",
14541454
):
14551455
check(

tests/test_pandas.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1979,7 +1979,7 @@ def g(x: pd.Series) -> int:
19791979
),
19801980
pd.DataFrame,
19811981
)
1982-
with pytest_warns_bounded(FutureWarning, "'M' is deprecated,", lower="2.1.99"):
1982+
with pytest_warns_bounded(FutureWarning, "'M' is deprecated", lower="2.1.99"):
19831983
check(
19841984
assert_type(
19851985
pd.pivot_table(

0 commit comments

Comments
 (0)