Skip to content

Commit bbc357d

Browse files
gh-143544: Fix re-entrant JSONDecodeError regression test
1 parent b485677 commit bbc357d

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
@@ -256,7 +256,7 @@ def __call__(self, *args, **kwargs):
256256
):
257257
# The exact exception type is not important here;
258258
# this test only ensures we don't crash.
259-
with self.assertRaises(self.JSONDecodeError):
259+
with self.assertRaises(json.JSONDecodeError):
260260
json.loads('"\\uZZZZ"')
261261

262262

0 commit comments

Comments
 (0)