Author: Armin Rigo <[email protected]>
Branch: py3.5
Changeset: r90346:f8aeb679acc9
Date: 2017-02-25 08:33 +0100
http://bitbucket.org/pypy/pypy/changeset/f8aeb679acc9/

Log:    fix another test for 4d3783a2d4a2

diff --git a/pypy/objspace/std/test/test_newformat.py 
b/pypy/objspace/std/test/test_newformat.py
--- a/pypy/objspace/std/test/test_newformat.py
+++ b/pypy/objspace/std/test/test_newformat.py
@@ -149,11 +149,12 @@
         assert self.s("{0:d}").format(G("data")) == "G(data)"
         assert self.s("{0!s}").format(G("data")) == "string is data"
 
-        msg = "non-empty format string passed to object.__format__"
+        msg = "unsupported format string passed to E.__format__"
         e = raises(TypeError, self.s("{0:^10}").format, E("data"))
         assert str(e.value) == msg
         e = raises(TypeError, self.s("{0:^10s}").format, E("data"))
         assert str(e.value) == msg
+        msg = "unsupported format string passed to G.__format__"
         e = raises(TypeError, self.s("{0:>15s}").format, G("data"))
         assert str(e.value) == msg
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to