]> granicus.if.org Git - python/commitdiff
Remove workaround
authorAntoine Pitrou <solipsis@pitrou.net>
Thu, 9 Sep 2010 20:40:28 +0000 (20:40 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Thu, 9 Sep 2010 20:40:28 +0000 (20:40 +0000)
Lib/test/test_gdb.py

index d80acfe1da47c19e5f2aa1434bb85a09cf0e9acb..bac8d36c18ee6a89f1afcbab111681d00f3285d5 100644 (file)
@@ -234,9 +234,7 @@ class PrettyPrintTests(DebuggerTests):
                 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)