File tree 1 file changed +4
-10
lines changed
1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 15
15
import pandas ._libs .json as ujson
16
16
from pandas .compat import (
17
17
IS64 ,
18
- PY310 ,
19
18
is_platform_windows ,
20
19
)
21
20
@@ -253,22 +252,17 @@ def test_double_precision(self):
253
252
[
254
253
20 ,
255
254
- 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 ,
264
257
],
265
258
)
266
259
def test_invalid_double_precision (self , invalid_val ):
267
260
double_input = 30.12345678901234567890
268
261
expected_exception = ValueError if isinstance (invalid_val , int ) else TypeError
269
262
msg = (
270
263
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"
272
266
)
273
267
with pytest .raises (expected_exception , match = msg ):
274
268
ujson .encode (double_input , double_precision = invalid_val )
You can’t perform that action at this time.
0 commit comments