[pypy-commit] pypy py3.5: fix test
arigo
pypy.commits at gmail.com
Tue Jan 17 05:25:18 EST 2017
Author: Armin Rigo <arigo at 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):
More information about the pypy-commit
mailing list