Skip to content

Commit 2d43001

Browse files
committed
TST: added xfail for ujson.encode with long int input
1 parent c7acef1 commit 2d43001

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/tests/io/json/test_ujson.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -565,10 +565,11 @@ def test_dumps_ints_larger_than_maxsize(self, bigNum):
565565
# GH34395
566566
bigNum = sys.maxsize + 1
567567
encoding = ujson.encode(bigNum)
568-
569568
assert str(bigNum) == encoding
570-
# ujson.loads to be fixed in the future
571-
# assert ujson.loads(encoding) == bigNum
569+
570+
# GH20599
571+
with pytest.raises(ValueError):
572+
assert ujson.loads(encoding) == bigNum
572573

573574
@pytest.mark.parametrize(
574575
"int_exp", ["1337E40", "1.337E40", "1337E+9", "1.337e+40", "1.337E-4"]

0 commit comments

Comments
 (0)