[pypy-commit] pypy py3.3: Adapt tests to changed import error messages.

mjacob noreply at buildbot.pypy.org
Fri Feb 27 23:13:25 CET 2015


Author: Manuel Jacob <me at manueljacob.de>
Branch: py3.3
Changeset: r76189:c957500b9b7b
Date: 2015-02-27 23:12 +0100
http://bitbucket.org/pypy/pypy/changeset/c957500b9b7b/

Log:	Adapt tests to changed import error messages.

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
@@ -388,19 +388,19 @@
         def imp():
             from pkg import relative_f
         exc = raises(ImportError, imp)
-        assert exc.value.args[0] == "No module named pkg.imp"
+        assert exc.value.args[0] == "No module named 'pkg.imp'"
 
     def test_no_relative_import_bug(self):
         def imp():
             from pkg import relative_g
         exc = raises(ImportError, imp)
-        assert exc.value.args[0] == "No module named pkg.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 pkg.i_am_not_here"
+        assert exc.value.args[0] == "No module named 'pkg.i_am_not_here'"
 
     def test_future_relative_import_level_1(self):
         from pkg import relative_c


More information about the pypy-commit mailing list