summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_gdb.py4
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)