commit | de7c1923c72d4fca565925e6cc82f3951d42b1d1 | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Thu Oct 11 14:09:03 2001 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Thu Oct 11 14:09:03 2001 +0000 |
tree | 0aaafd43795de8ff214adffea1f4ffff6cafc592 | |
parent | 57ca873c776790fa323489b8ada169cb9cc4643f [diff] [blame] |
Add test of hexlify on Unicode strings
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 @@ pass else: print 'expected TypeError not raised' + +# Verify the treatment of Unicode strings +verify(binascii.hexlify(u'a') == '61', "hexlify failed for Unicode") +