[Python-checkins] python/dist/src/Lib/test regrtest.py,1.70,1.70.4.1

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
2002年9月23日 13:45:38 -0700


Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv27501
Modified Files:
 Tag: release22-maint
	regrtest.py 
Log Message:
Backport 1.96 from trunk (because I want Xenofarm to test 2.2.2):
Add a bunch of sys.stdout.flush() calls that will hopefully improve
the usability of the output of the Xenofarm builds.
Index: regrtest.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/regrtest.py,v
retrieving revision 1.70
retrieving revision 1.70.4.1
diff -C2 -d -r1.70 -r1.70.4.1
*** regrtest.py	14 Dec 2001 21:28:53 -0000	1.70
--- regrtest.py	23 Sep 2002 20:45:36 -0000	1.70.4.1
***************
*** 178,181 ****
--- 178,182 ----
 if not quiet:
 print test
+ sys.stdout.flush()
 ok = runtest(test, generate, verbose, quiet, testdir)
 if ok > 0:
***************
*** 316,319 ****
--- 317,321 ----
 if not quiet:
 print "test", test, "skipped --", msg
+ sys.stdout.flush()
 return -1
 except KeyboardInterrupt:
***************
*** 321,330 ****
--- 323,335 ----
 except test_support.TestFailed, msg:
 print "test", test, "failed --", msg
+ sys.stdout.flush()
 return 0
 except:
 type, value = sys.exc_info()[:2]
 print "test", test, "crashed --", str(type) + ":", value
+ sys.stdout.flush()
 if verbose:
 traceback.print_exc(file=sys.stdout)
+ sys.stdout.flush()
 return 0
 else:
***************
*** 356,360 ****
--- 361,367 ----
 return 1
 print "test", test, "produced unexpected output:"
+ sys.stdout.flush()
 reportdiff(expected, output)
+ sys.stdout.flush()
 return 0
 

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