[Zodb-checkins] SVN: ZODB/trunk/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:16:02 EDT 2006
Log message for revision 69180:
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/trunk/test.py
-=-
Modified: ZODB/trunk/test.py
===================================================================
--- ZODB/trunk/test.py 2006-07-18 18:15:57 UTC (rev 69179)
+++ ZODB/trunk/test.py 2006-07-18 18:16:01 UTC (rev 69180)
@@ -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