mirror of
https://github.com/python/cpython.git
synced 2024-12-11 10:50:11 +08:00
Remove workaround
This commit is contained in:
parent
e4a189274f
commit
4c7c421944
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user