mirror of
https://github.com/python/cpython.git
synced 2024-12-11 18:53:56 +08:00
Remove workaround
This commit is contained in:
parent
e4a189274f
commit
4c7c421944
@ -234,9 +234,7 @@ class PrettyPrintTests(DebuggerTests):
|
|||||||
text.encode(encoding)
|
text.encode(encoding)
|
||||||
printable = True
|
printable = True
|
||||||
except UnicodeEncodeError:
|
except UnicodeEncodeError:
|
||||||
# Workaround ascii() bug on UCS-2 builds: issue #9804
|
self.assertGdbRepr(text, ascii(text))
|
||||||
asc = "'" + text.encode('unicode-escape').decode('ascii') + "'"
|
|
||||||
self.assertGdbRepr(text, asc)
|
|
||||||
else:
|
else:
|
||||||
self.assertGdbRepr(text)
|
self.assertGdbRepr(text)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user