[pypy-commit] pypy py3.3: Fix test by checking for correct behaviour.

mjacob pypy.commits at gmail.com
Mon Feb 15 12:04:52 EST 2016


Author: Manuel Jacob <me at manueljacob.de>
Branch: py3.3
Changeset: r82270:0a7d0c775a46
Date: 2016-02-15 17:20 +0100
http://bitbucket.org/pypy/pypy/changeset/0a7d0c775a46/

Log:	Fix test by checking for correct behaviour.

diff --git a/pypy/module/imp/test/test_import.py b/pypy/module/imp/test/test_import.py
--- a/pypy/module/imp/test/test_import.py
+++ b/pypy/module/imp/test/test_import.py
@@ -1105,8 +1105,7 @@
                 import b
             except ImportError:
                 pass
-            assert isinstance(sys.path_importer_cache['yyy'],
-                              imp.NullImporter)
+            assert sys.path_importer_cache['yyy'] is None
         finally:
             sys.path.pop(0)
             sys.path.pop(0)


More information about the pypy-commit mailing list