summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_binascii.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-10-11 14:09:03 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-10-11 14:09:03 (GMT)
commitde7c1923c72d4fca565925e6cc82f3951d42b1d1 (patch)
tree0aaafd43795de8ff214adffea1f4ffff6cafc592 /Lib/test/test_binascii.py
parent57ca873c776790fa323489b8ada169cb9cc4643f (diff)
downloadcpython-de7c1923c72d4fca565925e6cc82f3951d42b1d1.zip
cpython-de7c1923c72d4fca565925e6cc82f3951d42b1d1.tar.gz
cpython-de7c1923c72d4fca565925e6cc82f3951d42b1d1.tar.bz2
Add test of hexlify on Unicode strings
Diffstat (limited to 'Lib/test/test_binascii.py')
-rwxr-xr-xLib/test/test_binascii.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py
index cc78ee3..97461f0 100755
--- a/Lib/test/test_binascii.py
+++ b/Lib/test/test_binascii.py
@@ -110,3 +110,7 @@ except TypeError:
pass
else:
print 'expected TypeError not raised'
+
+# Verify the treatment of Unicode strings
+verify(binascii.hexlify(u'a') == '61', "hexlify failed for Unicode")
+