]> granicus.if.org Git - python/commitdiff
Add test of hexlify on Unicode strings
authorJeremy Hylton <jeremy@alum.mit.edu>
Thu, 11 Oct 2001 14:09:03 +0000 (14:09 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Thu, 11 Oct 2001 14:09:03 +0000 (14:09 +0000)
Lib/test/test_binascii.py

index cc78ee3187d8381fe3493ef081efb7e691da764c..97461f0fb3a80c062b63a10fd806d19bcce272f0 100755 (executable)
@@ -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")
+