[Python-checkins] python/dist/src/Lib/test regrtest.py,1.95,1.96
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Fri, 13 Sep 2002 14:28:05 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory usw-pr-cvs1:/tmp/cvs-serv16430
Modified Files:
regrtest.py
Log Message:
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.95
retrieving revision 1.96
diff -C2 -d -r1.95 -r1.96
*** regrtest.py 23 Aug 2002 17:55:54 -0000 1.95
--- regrtest.py 13 Sep 2002 21:28:03 -0000 1.96
***************
*** 221,224 ****
--- 221,225 ----
if not quiet:
print test
+ sys.stdout.flush()
ok = runtest(test, generate, verbose, quiet, testdir)
if ok > 0:
***************
*** 365,368 ****
--- 366,370 ----
if not quiet:
print "test", test, "skipped --", msg
+ sys.stdout.flush()
return -1
except KeyboardInterrupt:
***************
*** 370,379 ****
--- 372,384 ----
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:
***************
*** 405,409 ****
--- 410,416 ----
return 1
print "test", test, "produced unexpected output:"
+ sys.stdout.flush()
reportdiff(expected, output)
+ sys.stdout.flush()
return 0