diff Lib/test/test_array.py @ 47611:da47e7e135ae

#2630: Implement PEP 3138. The repr() of a string now contains printable Unicode characters unescaped. The new ascii() builtin can be used to get a repr() with only ASCII characters in it. PEP and patch were written by Atsuo Ishimoto.
author Georg Brandl <georg@python.org>
date Wed, 11 Jun 2008 18:37:52 +0000
parents d0f783ba7669
children ac854cde3135
line wrap: on
line diff
--- a/Lib/test/test_array.py	Wed Jun 11 18:35:23 2008 +0000
+++ b/Lib/test/test_array.py	Wed Jun 11 18:37:52 2008 +0000
@@ -768,7 +768,7 @@
         a = array.array('u', s)
         self.assertEqual(
             repr(a),
-            "array('u', '\\x00=\"\\'a\\\\b\\x80\\xff\\x00\\x01\\u1234')")
+            "array('u', '\\x00=\"\\'a\\\\b\\x80\xff\\x00\\x01\u1234')")
 
         self.assertRaises(TypeError, a.fromunicode)