Author: Preston Timmons <prestontimm...@gmail.com>
Branch: py3k
Changeset: r53573:aa67b0e702f7
Date: 2012-03-13 19:41 +0000
http://bitbucket.org/pypy/pypy/changeset/aa67b0e702f7/

Log:    Fixed unicode errors in the exceptions module.

diff --git a/pypy/module/exceptions/test/test_exc.py 
b/pypy/module/exceptions/test/test_exc.py
--- a/pypy/module/exceptions/test/test_exc.py
+++ b/pypy/module/exceptions/test/test_exc.py
@@ -83,7 +83,7 @@
         assert str(ut) == "can't translate characters in position 1-4: bah"
         ut.start = 4
         ut.object = '012345'
-        assert str(ut) == "can't translate character u'\\x34' in position 4: 
bah"
+        assert str(ut) == "can't translate character '\\x34' in position 4: 
bah"
         ut.object = []
         assert ut.object == []
 
@@ -163,7 +163,7 @@
         assert ue.object == 'z9'
         assert str(ue) == "'x' codec can't encode characters in position 1-4: 
bah"
         ue.end = 2
-        assert str(ue) == "'x' codec can't encode character u'\\x39' in 
position 1: bah"
+        assert str(ue) == "'x' codec can't encode character '\\x39' in 
position 1: bah"
         ue.object = []
         assert ue.object == []
         raises(TypeError, UnicodeEncodeError, "x", b"y", 1, 5, "bah")
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to