easy --disable-unicode proofing.
This commit is contained in:
parent
d95c828307
commit
286225b548
|
@ -1,6 +1,6 @@
|
|||
"""Test the binascii C module."""
|
||||
|
||||
from test_support import verify, verbose
|
||||
from test_support import verify, verbose, have_unicode
|
||||
import binascii
|
||||
|
||||
# Show module doc string
|
||||
|
@ -112,7 +112,9 @@ else:
|
|||
print 'expected TypeError not raised'
|
||||
|
||||
# Verify the treatment of Unicode strings
|
||||
verify(binascii.hexlify(u'a') == '61', "hexlify failed for Unicode")
|
||||
if have_unicode:
|
||||
verify(binascii.hexlify(unicode('a', 'ascii')) == '61',
|
||||
"hexlify failed for Unicode")
|
||||
|
||||
# A test for SF bug 534347 (segfaults without the proper fix)
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue