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 | de7c1923c72d4fca565925e6cc82f3951d42b1d1 (patch) | |
tree | 0aaafd43795de8ff214adffea1f4ffff6cafc592 /Lib/test/test_binascii.py | |
parent | Add a bunch of SSL error constants (diff) | |
download | cpython-de7c1923c72d4fca565925e6cc82f3951d42b1d1.tar.gz cpython-de7c1923c72d4fca565925e6cc82f3951d42b1d1.tar.bz2 cpython-de7c1923c72d4fca565925e6cc82f3951d42b1d1.zip |
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 cc78ee3187d..97461f0fb3a 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") + |