[Python-checkins] CVS: python/dist/src/Lib/test test_b2.py,1.16,1.17

Barry Warsaw python-dev@python.org
Tue, 19 Sep 2000 07:42:12 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv7602

Modified Files:
	test_b2.py 
Log Message:
Fixed the error reporting (raise of TestFailed) for the zip() and
zip(None) tests.  Found by Finn Bock a while ago.


Index: test_b2.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_b2.py,v
retrieving revision 1.16
retrieving revision 1.17
diff -C2 -r1.16 -r1.17
*** test_b2.py	2000/08/03 15:48:07	1.16
--- test_b2.py	2000/09/19 14:42:09	1.17
***************
*** 277,281 ****
  except:
  	e = sys.exc_info()[0]
! 	raise TestFailed, 'zip() - no args, expected TypeError, got', e
  if not exc:
  	raise TestFailed, 'zip() - no args, missing expected TypeError'
--- 277,281 ----
  except:
  	e = sys.exc_info()[0]
! 	raise TestFailed, 'zip() - no args, expected TypeError, got %s' % e
  if not exc:
  	raise TestFailed, 'zip() - no args, missing expected TypeError'
***************
*** 288,292 ****
  except:
  	e = sys.exc_info()[0]
! 	raise TestFailed, 'zip(None) - expected TypeError, got', e
  if not exc:
  	raise TestFailed, 'zip(None) - missing expected TypeError'
--- 288,292 ----
  except:
  	e = sys.exc_info()[0]
! 	raise TestFailed, 'zip(None) - expected TypeError, got %s' % e
  if not exc:
  	raise TestFailed, 'zip(None) - missing expected TypeError'