From: Jeremy Hylton Date: Thu, 11 Oct 2001 14:09:03 +0000 (+0000) Subject: Add test of hexlify on Unicode strings X-Git-Tag: v2.2.1c1~1344 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=de7c1923c72d4fca565925e6cc82f3951d42b1d1;p=thirdparty%2FPython%2Fcpython.git Add test of hexlify on Unicode strings --- diff --git a/Lib/test/test_binascii.py b/Lib/test/test_binascii.py index cc78ee3187d8..97461f0fb3a8 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") +