[pypy-svn] r48652 - in pypy/branch/more-unicode-improvements/pypy/objspace/std: . test
cfbolz at codespeak.net
cfbolz at codespeak.net
Tue Nov 13 16:32:39 CET 2007
Author: cfbolz
Date: Tue Nov 13 16:32:38 2007
New Revision: 48652
Modified:
pypy/branch/more-unicode-improvements/pypy/objspace/std/test/test_unicodeobject.py
pypy/branch/more-unicode-improvements/pypy/objspace/std/unicodeobject.py
Log:
bug + fix
Modified: pypy/branch/more-unicode-improvements/pypy/objspace/std/test/test_unicodeobject.py
==============================================================================
--- pypy/branch/more-unicode-improvements/pypy/objspace/std/test/test_unicodeobject.py (original)
+++ pypy/branch/more-unicode-improvements/pypy/objspace/std/test/test_unicodeobject.py Tue Nov 13 16:32:38 2007
@@ -461,3 +461,5 @@
def test_repr_bug(self):
assert (repr(u'\U00090418\u027d\U000582b9\u54c3\U000fcb6e') ==
"u'\\U00090418\\u027d\\U000582b9\\u54c3\\U000fcb6e'")
+ assert (repr(u'\n') ==
+ "u'\\n'")
Modified: pypy/branch/more-unicode-improvements/pypy/objspace/std/unicodeobject.py
==============================================================================
--- pypy/branch/more-unicode-improvements/pypy/objspace/std/unicodeobject.py (original)
+++ pypy/branch/more-unicode-improvements/pypy/objspace/std/unicodeobject.py Tue Nov 13 16:32:38 2007
@@ -913,7 +913,6 @@
if code == ord('\n'):
result.append('\\')
result.append('n')
- i += 2
j += 1
continue
if code < ord(' ') or code >= 0x7f:
More information about the Pypy-commit
mailing list