summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_json
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2020-05-14 23:02:10 (GMT)
committerGitHub <noreply@github.com>2020-05-14 23:02:10 (GMT)
commit4b972faf605912092013a1fdbf486c498d002926 (patch)
treea56782698a78651b31e5f4f21c8aa63637abdc7e /Lib/test/test_json
parentedf2643bbb9859403239fe1cb3c212b1a2a8e65c (diff)
downloadcpython-4b972faf605912092013a1fdbf486c498d002926.zip
cpython-4b972faf605912092013a1fdbf486c498d002926.tar.gz
cpython-4b972faf605912092013a1fdbf486c498d002926.tar.bz2
bpo-40462: Fix typo in test_json (GH-20094)
Diffstat (limited to 'Lib/test/test_json')
-rw-r--r--Lib/test/test_json/test_recursion.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_json/test_recursion.py b/Lib/test/test_json/test_recursion.py
index 877dc44..543c628 100644
--- a/Lib/test/test_json/test_recursion.py
+++ b/Lib/test/test_json/test_recursion.py
@@ -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"')