summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2002-05-20 14:15:42 (GMT)
committerMichael W. Hudson <mwh@python.net>2002-05-20 14:15:42 (GMT)
commit286225b548c6bec4e64125faabaf3e685a8797c6 (patch)
treec25adb37ef15e0a959729666568ea44b34324a99 /Lib
parentd95c828307bd57152f9ed5cb905e3a84acab5439 (diff)
downloadcpython-286225b548c6bec4e64125faabaf3e685a8797c6.zip
cpython-286225b548c6bec4e64125faabaf3e685a8797c6.tar.gz
cpython-286225b548c6bec4e64125faabaf3e685a8797c6.tar.bz2
easy --disable-unicode proofing.
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/test_binascii.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py
index 5b45f7d..d4a905a 100755
--- a/Lib/test/test_binascii.py
+++ b/Lib/test/test_binascii.py
@@ -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: