]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40462: Fix typo in test_json (GH-20094)
authorVictor Stinner <vstinner@python.org>
Thu, 14 May 2020 23:02:10 +0000 (01:02 +0200)
committerGitHub <noreply@github.com>
Thu, 14 May 2020 23:02:10 +0000 (01:02 +0200)
Lib/test/test_json/test_recursion.py

index 877dc448b14c1539c7d668ab7e39fccf04e1bb94..543c62839b2cdd98bc1bdc3b8e3fa788099aa1e2 100644 (file)
@@ -52,7 +52,7 @@ class TestRecursion:
                         return [JSONTestObject]
                     else:
                         return 'JSONTestObject'
-                return pyjson.JSONEncoder.default(o)
+                return self.json.JSONEncoder.default(o)
 
         enc = RecursiveJSONEncoder()
         self.assertEqual(enc.encode(JSONTestObject), '"JSONTestObject"')