diff options
author | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-11 14:09:03 +0000 |
---|---|---|
committer | Jeremy Hylton <jeremy@alum.mit.edu> | 2001-10-11 14:09:03 +0000 |
commit | 5ea06f11e54854e223988263681da9fa38c5fbec (patch) | |
tree | 7eef5cbe5bc309f7701a25e4e8f1f294eda71204 /Lib/test/test_binascii.py | |
parent | 91dc0ba7f47e33a3690bb97582ad02ad9a050da0 (diff) | |
download | cpython-5ea06f11e54854e223988263681da9fa38c5fbec.tar.gz |
Add test of hexlify on Unicode strings
Diffstat (limited to 'Lib/test/test_binascii.py')
-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 cc78ee3187..97461f0fb3 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") + |