From 16b98de9997e5dd471cc5bad5105b3dc54403657 Mon Sep 17 00:00:00 2001 From: Yoshinori Okuji <yo@nexedi.com> Date: Sat, 20 Oct 2007 19:00:26 +0000 Subject: [PATCH] No reason to make stdin or stderr be unbuffered. git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17061 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Type/tests/runUnitTest.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/product/ERP5Type/tests/runUnitTest.py b/product/ERP5Type/tests/runUnitTest.py index 33e57c173f..382e5017d7 100755 --- a/product/ERP5Type/tests/runUnitTest.py +++ b/product/ERP5Type/tests/runUnitTest.py @@ -346,11 +346,9 @@ def main(): 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 -- 2.30.9