Author: Armin Rigo <ar...@tunes.org> Branch: py3.5 Changeset: r89627:a3becf0c9331 Date: 2017-01-17 11:24 +0100 http://bitbucket.org/pypy/pypy/changeset/a3becf0c9331/
Log: fix test diff --git a/lib-python/3/test/test_json/__init__.py b/lib-python/3/test/test_json/__init__.py --- a/lib-python/3/test/test_json/__init__.py +++ b/lib-python/3/test/test_json/__init__.py @@ -10,7 +10,8 @@ cjson = support.import_fresh_module('json', fresh=['_json']) pyjson = support.import_fresh_module('json', blocked=['_json']) # JSONDecodeError is cached inside the _json module -cjson.JSONDecodeError = cjson.decoder.JSONDecodeError = json.JSONDecodeError +if cjson is not None: + cjson.JSONDecodeError = cjson.decoder.JSONDecodeError = json.JSONDecodeError # create two base classes that will be used by the other tests class PyTest(unittest.TestCase): _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit