Skip to content

Commit 0a03442

Browse files
test_json: assert TypeError for invalid JSONDecodeError replacement
1 parent b745fed commit 0a03442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_json/test_fail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def __call__(self, *args, **kwargs):
262262
json.decoder.JSONDecodeError = hook
263263
del hook
264264

265-
with self.assertRaises(ValueError):
265+
with self.assertRaises(TypeError):
266266
json.loads('"\\uZZZZ"')
267267
finally:
268268
json.JSONDecodeError = orig_json_error

0 commit comments

Comments
 (0)