Skip to content

Commit ccab26e

Browse files
committed
fix tests
1 parent 627e510 commit ccab26e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pandas/tests/io/test_parquet.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def test_get_engine_auto_error_message():
325325
with pytest.raises(ImportError, match=match):
326326
get_engine("auto")
327327
else:
328-
match = "Import .pyarrow failed."
328+
match = "Unable to find a usable engine; tried using: 'pyarrow'"
329329
with pytest.raises(ImportError, match=match):
330330
get_engine("auto")
331331

@@ -1133,9 +1133,9 @@ def test_string_inference(self, tmp_path, pa, using_infer_string):
11331133
index=pd.Index(["a", "b"], dtype=dtype),
11341134
columns=pd.Index(
11351135
["a"],
1136-
dtype=object
1137-
if pa_version_under19p0 and not using_infer_string
1138-
else dtype,
1136+
dtype=(
1137+
object if pa_version_under19p0 and not using_infer_string else dtype
1138+
),
11391139
),
11401140
)
11411141
tm.assert_frame_equal(result, expected)

pandas/tests/util/test_numba.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77

88
@td.skip_if_installed("numba")
99
def test_numba_not_installed_option_context():
10-
with pytest.raises(ImportError, match="Import numba failed"):
10+
with pytest.raises(ImportError, match="`Import numba` failed"):
1111
with option_context("compute.use_numba", True):
1212
pass

0 commit comments

Comments
 (0)