[Python-checkins] CVS: python/dist/src/Lib/test regrtest.py,1.22,1.23

Fred L. Drake python-dev@python.org
Fri, 18 Aug 2000 09:04:08 -0700


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

Modified Files:
	regrtest.py 
Log Message:

When a KeyboardInterrupt is caught, just use the "raise" syntax to
re-raise it instead of re-raising it "manually" the ugly way.


Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** regrtest.py	2000/08/11 19:02:58	1.22
--- regrtest.py	2000/08/18 16:04:05	1.23
***************
*** 235,240 ****
              print "skipped -- ", msg
          return -1
!     except KeyboardInterrupt, v:
!         raise KeyboardInterrupt, v, sys.exc_info()[2]
      except test_support.TestFailed, msg:
          print "test", test, "failed --", msg
--- 235,240 ----
              print "skipped -- ", msg
          return -1
!     except KeyboardInterrupt:
!         raise
      except test_support.TestFailed, msg:
          print "test", test, "failed --", msg