mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Guess what? --disable-unicode proofing.
This is a strange test.
This commit is contained in:
parent
f207277167
commit
7b7ba54033
1 changed files with 7 additions and 4 deletions
|
@ -14,8 +14,11 @@ single case that failed between 2.1 and 2.2a2.
|
|||
# XXX If the encoding succeeds using the current default encoding,
|
||||
# this test will fail because it does not test the right part of the
|
||||
# PyArg_ParseTuple() implementation.
|
||||
from test_support import have_unicode
|
||||
import marshal
|
||||
try:
|
||||
marshal.loads(u"\222")
|
||||
except UnicodeError:
|
||||
pass
|
||||
|
||||
if have_unicode:
|
||||
try:
|
||||
marshal.loads(unicode(r"\222", 'unicode-escape'))
|
||||
except UnicodeError:
|
||||
pass
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue