[Zodb-checkins] SVN: ZODB/branches/jim-async-client/test.py Flush output to we don't lose it when we call _atexit.

Jim Fulton jim at zope.com
Thu Jul 13 17:55:39 EDT 2006


Log message for revision 69116:
  Flush output to we don't lose it when we call _atexit.
  

Changed:
  U   ZODB/branches/jim-async-client/test.py

-=-
Modified: ZODB/branches/jim-async-client/test.py
===================================================================
--- ZODB/branches/jim-async-client/test.py	2006-07-13 18:57:58 UTC (rev 69115)
+++ ZODB/branches/jim-async-client/test.py	2006-07-13 21:55:39 UTC (rev 69116)
@@ -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