easy --disable-unicode proofing.

This commit is contained in:
Michael W. Hudson 2002-05-20 14:15:42 +00:00
parent d95c828307
commit 286225b548
1 changed files with 4 additions and 2 deletions

View File

@ -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: