[Python-checkins] python/dist/src/Lib/test test_binascii.py,1.12,1.13

mwh@sourceforge.net mwh@sourceforge.net
Mon, 20 May 2002 07:15:45 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv24450

Modified Files:
	test_binascii.py 
Log Message:
easy --disable-unicode proofing.


Index: test_binascii.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_binascii.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -d -r1.12 -r1.13
*** test_binascii.py	4 Apr 2002 16:27:04 -0000	1.12
--- test_binascii.py	20 May 2002 14:15:42 -0000	1.13
***************
*** 1,5 ****
  """Test the binascii C module."""
  
! from test_support import verify, verbose
  import binascii
  
--- 1,5 ----
  """Test the binascii C module."""
  
! from test_support import verify, verbose, have_unicode
  import binascii
  
***************
*** 113,117 ****
  
  # Verify the treatment of Unicode strings
! verify(binascii.hexlify(u'a') == '61', "hexlify failed for Unicode")
  
  # A test for SF bug 534347 (segfaults without the proper fix)
--- 113,119 ----
  
  # Verify the treatment of Unicode strings
! if have_unicode:
!     verify(binascii.hexlify(unicode('a', 'ascii')) == '61', 
!            "hexlify failed for Unicode")
  
  # A test for SF bug 534347 (segfaults without the proper fix)