Skip to content

Commit 05f8efb

Browse files
committed
gh-137821: Fix wrongly tested json.decoder.scanstring
1 parent adf0c11 commit 05f8efb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_json/test_scanstring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ def test_bad_escapes(self):
144144

145145
def test_overflow(self):
146146
with self.assertRaises(OverflowError):
147-
self.json.decoder.scanstring(b"xxx", sys.maxsize+1)
147+
self.json.decoder.scanstring("xxx", sys.maxsize+1)
148148

149149

150150
class TestPyScanstring(TestScanstring, PyTest): pass

0 commit comments

Comments
 (0)