This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients vstinner
Date 2020-04-30.23:59:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1588291170.81.0.897098341137.issue40462@roundup.psfhosted.org>
In-reply-to
Content
Another one:

Lib/test/test_json/test_recursion.py:55:24 undefined name 'pyjson'

Code:

    def test_defaultrecursion(self):
        class RecursiveJSONEncoder(self.json.JSONEncoder):
            recurse = False
            def default(self, o):
                if o is JSONTestObject:
                    if self.recurse:
                        return [JSONTestObject]
                    else:
                        return 'JSONTestObject'
                return pyjson.JSONEncoder.default(o)

Here I'm not sure. *Maybe* pyjson.JSONEncoder should be replaced with self.json.JSONEncoder?
History
Date User Action Args
2020-04-30 23:59:30vstinnersetrecipients: + vstinner
2020-04-30 23:59:30vstinnersetmessageid: <1588291170.81.0.897098341137.issue40462@roundup.psfhosted.org>
2020-04-30 23:59:30vstinnerlinkissue40462 messages
2020-04-30 23:59:30vstinnercreate