diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-11 14:09:03 (GMT) |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-11 14:09:03 (GMT) |
commit | de7c1923c72d4fca565925e6cc82f3951d42b1d1 (patch) | |
tree | 0aaafd43795de8ff214adffea1f4ffff6cafc592 | |
parent | 57ca873c776790fa323489b8ada169cb9cc4643f (diff) | |
download | cpython-de7c1923c72d4fca565925e6cc82f3951d42b1d1.zip cpython-de7c1923c72d4fca565925e6cc82f3951d42b1d1.tar.gz cpython-de7c1923c72d4fca565925e6cc82f3951d42b1d1.tar.bz2 |
Add test of hexlify on Unicode strings
-rwxr-xr-x | Lib/test/test_binascii.py | 4 |
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") + |