[Zodb-checkins] SVN: ZODB/branches/3.7/test.py Because we use os._exit, to avoid spurious logging errors, we need to

Jim Fulton jim at zope.com
Tue Jul 18 14:37:52 EDT 2006


Log message for revision 69184:
  Because we use os._exit, to avoid spurious logging errors, we need to
  explicitly flush output to make sure we see test results.
  

Changed:
  U   ZODB/branches/3.7/test.py

-=-
Modified: ZODB/branches/3.7/test.py
===================================================================
--- ZODB/branches/3.7/test.py	2006-07-18 18:37:49 UTC (rev 69183)
+++ ZODB/branches/3.7/test.py	2006-07-18 18:37:51 UTC (rev 69184)
@@ -68,4 +68,9 @@
 # something after the files used by the logger have been closed.
 logging.disable(999999999)
 import os
+
+# Because we're about to use os._exit, we flush output so we don't miss any.
+sys.stdout.flush()
+sys.stderr.flush()
+
 os._exit(result)



More information about the Zodb-checkins mailing list