Author: Armin Rigo <[email protected]>
Branch: stdlib-2.7.13
Changeset: r89166:b0bc60afe38f
Date: 2016-12-18 21:31 +0100
http://bitbucket.org/pypy/pypy/changeset/b0bc60afe38f/

Log:    tweak the error message to pass the cpython test

diff --git a/pypy/module/imp/importing.py b/pypy/module/imp/importing.py
--- a/pypy/module/imp/importing.py
+++ b/pypy/module/imp/importing.py
@@ -355,7 +355,7 @@
             w_name = space.getitem(w_fromlist, space.wrap(i))
             if not space.isinstance_w(w_name, space.w_str):
                 raise oefmt(space.w_TypeError,
-                    "'fromlist' must be a list of strings, got %T", w_name)
+                    "'fromlist' items must be str, not %T", w_name)
         if w_path is not None:
             if length == 1 and space.eq_w(
                     space.getitem(w_fromlist, space.wrap(0)),
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to