Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r60492:282c08ad3c0a
Date: 2013-01-25 13:41 -0800
http://bitbucket.org/pypy/pypy/changeset/282c08ad3c0a/
Log: further test for this error message
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
@@ -418,6 +418,12 @@
exc = raises(ImportError, imp)
assert exc.value.args[0] == "No module named pkg.imp"
+ def test_import_msg(self):
+ def imp():
+ import pkg.i_am_not_here.neither_am_i
+ exc = raises(ImportError, imp)
+ assert exc.value.args[0] == "No module named
i_am_not_here.neither_am_i"
+
def test_future_relative_import_level_1(self):
from pkg import relative_c
assert relative_c.inpackage == 1
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit