[Erp5-report] r17061 - /erp5/trunk/products/ERP5Type/tests/runUnitTest.py

nobody at svn.erp5.org nobody at svn.erp5.org
Sat Oct 20 21:00:26 CEST 2007


Author: yo
Date: Sat Oct 20 21:00:26 2007
New Revision: 17061

URL: http://svn.erp5.org?rev=17061&view=rev
Log:
No reason to make stdin or stderr be unbuffered.

Modified:
    erp5/trunk/products/ERP5Type/tests/runUnitTest.py

Modified: erp5/trunk/products/ERP5Type/tests/runUnitTest.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Type/tests/runUnitTest.py?rev=17061&r1=17060&r2=17061&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Type/tests/runUnitTest.py (original)
+++ erp5/trunk/products/ERP5Type/tests/runUnitTest.py Sat Oct 20 21:00:26 2007
@@ -346,11 +346,9 @@
   sys.exit(len(result.failures) + len(result.errors))
 
 if __name__ == '__main__':
-  # Force stdin, stdout and stderr to be totally unbuffered.
+  # Force stdout to be totally unbuffered.
   try:
-    sys.stdin = os.fdopen(0, "rb", 0)
     sys.stdout = os.fdopen(1, "wb", 0)
-    sys.stderr = os.fdopen(2, "wb", 0)
   except OSError:
     pass
 




More information about the Erp5-report mailing list