Kaydet (Commit) 286225b5 authored tarafından Michael W. Hudson's avatar Michael W. Hudson

easy --disable-unicode proofing.

üst d95c8283
"""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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment