Skip to content

Commit 10c61c4

Browse files
gh-143544: Use support.swap_attr in re-entrant JSONDecodeError test
1 parent c397e8e commit 10c61c4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Lib/test/test_json/test_fail.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
from test.test_json import PyTest, CTest
2+
from test import support
3+
import json
24

35
# 2007-10-05
46
JSONDOCS = [
@@ -236,6 +238,7 @@ def test_linecol(self):
236238
'Expecting value: line %s column %d (char %d)' %
237239
(line, col, idx))
238240

241+
239242
def test_reentrant_jsondecodeerror_does_not_crash(self):
240243
# gh-143544
241244

0 commit comments

Comments
 (0)