Skip to content

Commit a328770

Browse files
lithomas1yehoshuadimarsky
authored andcommitted
TST: Update error msg for Python 3.10 (pandas-dev#45567)
1 parent 5fd73d9 commit a328770

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

pandas/tests/io/json/test_ujson.py

+4-10
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
import pandas._libs.json as ujson
1616
from pandas.compat import (
1717
IS64,
18-
PY310,
1918
is_platform_windows,
2019
)
2120

@@ -253,22 +252,17 @@ def test_double_precision(self):
253252
[
254253
20,
255254
-1,
256-
pytest.param(
257-
"9",
258-
marks=pytest.mark.xfail(PY310, reason="Failing on Python 3.10 GH41940"),
259-
),
260-
pytest.param(
261-
None,
262-
marks=pytest.mark.xfail(PY310, reason="Failing on Python 3.10 GH41940"),
263-
),
255+
"9",
256+
None,
264257
],
265258
)
266259
def test_invalid_double_precision(self, invalid_val):
267260
double_input = 30.12345678901234567890
268261
expected_exception = ValueError if isinstance(invalid_val, int) else TypeError
269262
msg = (
270263
r"Invalid value '.*' for option 'double_precision', max is '15'|"
271-
r"an integer is required \(got type "
264+
r"an integer is required \(got type |"
265+
r"object cannot be interpreted as an integer"
272266
)
273267
with pytest.raises(expected_exception, match=msg):
274268
ujson.encode(double_input, double_precision=invalid_val)

0 commit comments

Comments
 (0)