[Python-checkins] r80905 - python/branches/py3k/Lib/test/regrtest.py

victor.stinner python-checkins at python.org
Fri May 7 02:57:12 CEST 2010


Author: victor.stinner
Date: Fri May  7 02:57:12 2010
New Revision: 80905

Log:
regrtest.py: disable replace_stdout() on Windows until it is fixed

See issue #8533 (problem with newlines on Windows).


Modified:
   python/branches/py3k/Lib/test/regrtest.py

Modified: python/branches/py3k/Lib/test/regrtest.py
==============================================================================
--- python/branches/py3k/Lib/test/regrtest.py	(original)
+++ python/branches/py3k/Lib/test/regrtest.py	Fri May  7 02:57:12 2010
@@ -733,6 +733,9 @@
 def replace_stdout():
     """Set stdout encoder error handler to backslashreplace (as stderr error
     handler) to avoid UnicodeEncodeError when printing a traceback"""
+    if os.name == "nt":
+        # Replace sys.stdout breaks the stdout newlines on Windows: issue #8533
+        return
     stdout = sys.stdout
     sys.stdout = open(stdout.fileno(), 'w',
         encoding=stdout.encoding,


More information about the Python-checkins mailing list