bpo-40462: Fix typo in test_json (GH-20094)

This commit is contained in:
Victor Stinner 2020-05-15 01:02:10 +02:00 committed by GitHub
parent edf2643bbb
commit 4b972faf60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View 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"')