mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Remove workaround
This commit is contained in:
parent
e4a189274f
commit
4c7c421944
1 changed files with 1 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue