diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-09 20:40:28 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2010-09-09 20:40:28 (GMT) |
commit | 4c7c4219443d1a6b9aa1f310faabe101cdd09fb2 (patch) | |
tree | a4fd77a2a6b6f41c96c447300f6316e74b161c35 | |
parent | e4a189274f3d88d64d5238bf340cec96eff4e5e0 (diff) | |
download | cpython-4c7c4219443d1a6b9aa1f310faabe101cdd09fb2.zip cpython-4c7c4219443d1a6b9aa1f310faabe101cdd09fb2.tar.gz cpython-4c7c4219443d1a6b9aa1f310faabe101cdd09fb2.tar.bz2 |
Remove workaround
-rw-r--r-- | Lib/test/test_gdb.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index d80acfe..bac8d36 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) |