From: Antoine Pitrou Date: Thu, 9 Sep 2010 20:40:28 +0000 (+0000) Subject: Remove workaround X-Git-Tag: v3.2a3~355 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4c7c4219443d1a6b9aa1f310faabe101cdd09fb2;p=thirdparty%2FPython%2Fcpython.git Remove workaround --- diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index d80acfe1da47..bac8d36c18ee 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -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)