Skip to content

Commit 064e989

Browse files
authored
[3.14] pythongh-137821: Fix wrongly tested json.decoder.scanstring (pythongh-140782)
1 parent a7cfe86 commit 064e989

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)