[Python-checkins] r84657 - python/branches/py3k/Lib/test/test_gdb.py

antoine.pitrou python-checkins at python.org
Thu Sep 9 22:40:29 CEST 2010


Author: antoine.pitrou
Date: Thu Sep  9 22:40:28 2010
New Revision: 84657

Log:
Remove workaround



Modified:
   python/branches/py3k/Lib/test/test_gdb.py

Modified: python/branches/py3k/Lib/test/test_gdb.py
==============================================================================
--- python/branches/py3k/Lib/test/test_gdb.py	(original)
+++ python/branches/py3k/Lib/test/test_gdb.py	Thu Sep  9 22:40:28 2010
@@ -234,9 +234,7 @@
                 text.encode(encoding)
                 printable = True
             except UnicodeEncodeError:
-                # Workaround ascii() bug on UCS-2 builds: issue #9804
-                asc = "'" + text.encode('unicode-escape').decode('ascii') + "'"
-                self.assertGdbRepr(text, asc)
+                self.assertGdbRepr(text, ascii(text))
             else:
                 self.assertGdbRepr(text)
 


More information about the Python-checkins mailing list