[pypy-commit] pypy py3.6: fix test

mattip pypy.commits at gmail.com
Mon Feb 18 10:07:47 EST 2019


Author: Matti Picus <matti.picus at gmail.com>
Branch: py3.6
Changeset: r96065:393374a59e39
Date: 2019-02-18 15:05 +0200
http://bitbucket.org/pypy/pypy/changeset/393374a59e39/

Log:	fix test

diff --git a/pypy/objspace/std/test/test_intobject.py b/pypy/objspace/std/test/test_intobject.py
--- a/pypy/objspace/std/test/test_intobject.py
+++ b/pypy/objspace/std/test/test_intobject.py
@@ -588,7 +588,7 @@
     def test_int_error_msg_surrogate(self):
         value = u'123\ud800'
         e = raises(ValueError, int, value)
-        assert str(e.value) == "invalid literal for int() with base 10: %r" % value
+        assert str(e.value) == u"invalid literal for int() with base 10: %r" % value
 
     def test_non_numeric_input_types(self):
         # Test possible non-numeric types for the argument x, including


More information about the pypy-commit mailing list