Skip to content

Commit fa69d1e

Browse files
gh-143544: Move json import to module level in regression test
1 parent b238345 commit fa69d1e

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
@@ -1,4 +1,5 @@
11
from test.test_json import PyTest, CTest
2+
import json
23

34
# 2007-10-05
45
JSONDOCS = [
@@ -238,7 +239,6 @@ def test_linecol(self):
238239

239240
def test_reentrant_jsondecodeerror_does_not_crash(self):
240241
# gh-143544
241-
import json
242242

243243
orig_json_error = json.JSONDecodeError
244244
orig_decoder_error = json.decoder.JSONDecodeError

0 commit comments

Comments
 (0)