Remove workaround

This commit is contained in:
Antoine Pitrou 2010-09-09 20:40:28 +00:00
parent e4a189274f
commit 4c7c421944
1 changed files with 1 additions and 3 deletions

View 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)