Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-40462: Fix typo in test_json
  • Loading branch information
vstinner committed May 14, 2020
commit e37c8a8c2020df4da8df31602e50e7fa90dc96e0
2 changes: 1 addition & 1 deletion Lib/test/test_json/test_recursion.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def default(self, o):
return [JSONTestObject]
else:
return 'JSONTestObject'
return pyjson.JSONEncoder.default(o)
return self.json.JSONEncoder.default(o)

enc = RecursiveJSONEncoder()
self.assertEqual(enc.encode(JSONTestObject), '"JSONTestObject"')
Expand Down