[pypy-commit] pypy py3k: kill the u''

antocuni noreply at buildbot.pypy.org
Tue Feb 28 23:43:47 CET 2012


Author: Antonio Cuni <anto.cuni at gmail.com>
Branch: py3k
Changeset: r53003:ef6d5d78273e
Date: 2012-02-28 23:08 +0100
http://bitbucket.org/pypy/pypy/changeset/ef6d5d78273e/

Log:	kill the u''

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
@@ -151,16 +151,16 @@
 
     def test_unicode_encode_error(self):
         from exceptions import UnicodeEncodeError
-        ue = UnicodeEncodeError("x", u"y", 1, 5, "bah")
+        ue = UnicodeEncodeError("x", "y", 1, 5, "bah")
         assert ue.encoding == 'x'
-        assert ue.object == u'y'
+        assert ue.object == 'y'
         assert ue.start == 1
         assert ue.end == 5
         assert ue.reason == 'bah'
-        assert ue.args == ('x', u'y', 1, 5, 'bah')
+        assert ue.args == ('x', 'y', 1, 5, 'bah')
         assert ue.message == ''
-        ue.object = u'z9'
-        assert ue.object == u'z9'
+        ue.object = 'z9'
+        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"


More information about the pypy-commit mailing list