File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed
Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change 1515import pandas ._libs .json as ujson
1616from 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 )
You can’t perform that action at this time.
0 commit comments