Author: marky1991
Branch: py3.3
Changeset: r81711:fc8ca82ec8d6
Date: 2016-01-07 23:52 -0500
http://bitbucket.org/pypy/pypy/changeset/fc8ca82ec8d6/

Log:    As of 3.3, this scenario actually raises a KeyError on Cpython, not
        an ImportError anymore.

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
@@ -636,7 +636,9 @@
     def test_del_from_sys_modules(self):
         try:
             import del_sys_module
-        except ImportError:
+        #This raises a KeyError in cpython,
+        #not an import error
+        except KeyError:
             pass    # ok
         else:
             assert False, 'should not work'
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to