aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-10-11 14:09:03 +0000
committerJeremy Hylton <jeremy@alum.mit.edu>2001-10-11 14:09:03 +0000
commitde7c1923c72d4fca565925e6cc82f3951d42b1d1 (patch)
tree0aaafd43795de8ff214adffea1f4ffff6cafc592 /Lib/test/test_binascii.py
parentAdd a bunch of SSL error constants (diff)
downloadcpython-de7c1923c72d4fca565925e6cc82f3951d42b1d1.tar.gz
cpython-de7c1923c72d4fca565925e6cc82f3951d42b1d1.tar.bz2
cpython-de7c1923c72d4fca565925e6cc82f3951d42b1d1.zip
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 cc78ee3187d..97461f0fb3a 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")
+