[Python-checkins] CVS: python/dist/src/Lib/test test_binascii.py,1.9,1.10
Jeremy Hylton
jhylton@users.sourceforge.net
Thu, 11 Oct 2001 07:09:05 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv27691
Modified Files:
test_binascii.py
Log Message:
Add test of hexlify on Unicode strings
Index: test_binascii.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_binascii.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** test_binascii.py 2001/09/04 19:14:14 1.9
--- test_binascii.py 2001/10/11 14:09:03 1.10
***************
*** 111,112 ****
--- 111,116 ----
else:
print 'expected TypeError not raised'
+
+ # Verify the treatment of Unicode strings
+ verify(binascii.hexlify(u'a') == '61', "hexlify failed for Unicode")
+