[Python-checkins] CVS: python/dist/src/Lib unittest.py,1.12,1.13

Fred L. Drake, Jr. fdrake@acm.org
Thu, 6 Dec 2001 23:54:37 -0500


Guido van Rossum writes:
 > Modified Files:
 > 	unittest.py 
 > Log Message:
 > In unconditional except clauses, don't catch KeyboardInterrupt -- it's
 > annoying that often you have to hit ^C numerous times before it
 > works. The solution: before the "except:" clause, insert "except
 > KeyboardInterrupt: raise". This propagates KeyboardInterrupt out,
 > stopping the test in its tracks.
 Please submit this to the PyUnit project as well:
	http://sourceforge.net/projects/pyunit/
 Thanks!
 -Fred
-- 
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation

AltStyle によって変換されたページ (->オリジナル) /