Author: Antonio Cuni <anto.c...@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" _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit