Skip to content

Commit 2e26467

Browse files
committed
Fix error message check
1 parent 2eb5c88 commit 2e26467

13 files changed

+13
-13
lines changed

pandas/tests/frame/methods/test_convert_dtypes.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def test_pyarrow_engine_lines_false(self):
129129
# GH 48893
130130
df = pd.DataFrame({"a": [1, 2, 3]})
131131
msg = (
132-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
132+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
133133
"'pyarrow' are allowed."
134134
)
135135
with pytest.raises(ValueError, match=msg):

pandas/tests/io/json/test_pandas.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1946,7 +1946,7 @@ def test_read_json_nullable_series(self, string_storage, dtype_backend, orient):
19461946

19471947
def test_invalid_dtype_backend(self):
19481948
msg = (
1949-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
1949+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
19501950
"'pyarrow' are allowed."
19511951
)
19521952
with pytest.raises(ValueError, match=msg):

pandas/tests/io/parser/test_read_fwf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,7 @@ def test_dtype_backend(string_storage, dtype_backend):
10051005

10061006
def test_invalid_dtype_backend():
10071007
msg = (
1008-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
1008+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
10091009
"'pyarrow' are allowed."
10101010
)
10111011
with pytest.raises(ValueError, match=msg):

pandas/tests/io/parser/test_unsupported.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def test_invalid_file_inputs(request, all_parsers):
205205
def test_invalid_dtype_backend(all_parsers):
206206
parser = all_parsers
207207
msg = (
208-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
208+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
209209
"'pyarrow' are allowed."
210210
)
211211
with pytest.raises(ValueError, match=msg):

pandas/tests/io/test_clipboard.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ def test_read_clipboard_dtype_backend(
470470

471471
def test_invalid_dtype_backend(self):
472472
msg = (
473-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
473+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
474474
"'pyarrow' are allowed."
475475
)
476476
with pytest.raises(ValueError, match=msg):

pandas/tests/io/test_feather.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ def test_int_columns_and_index(self):
215215

216216
def test_invalid_dtype_backend(self):
217217
msg = (
218-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
218+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
219219
"'pyarrow' are allowed."
220220
)
221221
df = pd.DataFrame({"int": list(range(1, 4))})

pandas/tests/io/test_html.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1468,7 +1468,7 @@ def test_extract_links_all_no_header(self):
14681468

14691469
def test_invalid_dtype_backend(self):
14701470
msg = (
1471-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
1471+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
14721472
"'pyarrow' are allowed."
14731473
)
14741474
with pytest.raises(ValueError, match=msg):

pandas/tests/io/test_orc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ def test_orc_uri_path():
395395

396396
def test_invalid_dtype_backend():
397397
msg = (
398-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
398+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
399399
"'pyarrow' are allowed."
400400
)
401401
df = pd.DataFrame({"int": list(range(1, 4))})

pandas/tests/io/test_parquet.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1213,7 +1213,7 @@ def test_bytes_file_name(self, engine):
12131213

12141214
def test_invalid_dtype_backend(self):
12151215
msg = (
1216-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
1216+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
12171217
"'pyarrow' are allowed."
12181218
)
12191219
df = pd.DataFrame({"int": list(range(1, 4))})

pandas/tests/io/test_spss.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def test_spss_umlauts_dtype_backend(datapath, dtype_backend):
106106

107107
def test_invalid_dtype_backend():
108108
msg = (
109-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
109+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
110110
"'pyarrow' are allowed."
111111
)
112112
with pytest.raises(ValueError, match=msg):

pandas/tests/io/test_sql.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2493,7 +2493,7 @@ def test_read_sql_invalid_dtype_backend_table(self, func):
24932493
df.to_sql(table, self.conn, index=False, if_exists="replace")
24942494

24952495
msg = (
2496-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
2496+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
24972497
"'pyarrow' are allowed."
24982498
)
24992499
with pytest.raises(ValueError, match=msg):

pandas/tests/io/xml/test_xml.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1893,7 +1893,7 @@ def test_read_xml_nullable_dtypes(parser, string_storage, dtype_backend):
18931893

18941894
def test_invalid_dtype_backend():
18951895
msg = (
1896-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
1896+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
18971897
"'pyarrow' are allowed."
18981898
)
18991899
with pytest.raises(ValueError, match=msg):

pandas/tests/tools/test_to_numeric.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -919,7 +919,7 @@ def test_to_numeric_dtype_backend_error(dtype_backend):
919919
def test_invalid_dtype_backend():
920920
ser = Series([1, 2, 3])
921921
msg = (
922-
"dtype_backend numpy invalid, only 'numpy_nullable' and "
922+
"dtype_backend numpy is invalid, only 'numpy_nullable' and "
923923
"'pyarrow' are allowed."
924924
)
925925
with pytest.raises(ValueError, match=msg):

0 commit comments

Comments
 (0)