aboutsummaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-05-07 00:57:12 +0000
committerVictor Stinner <victor.stinner@haypocalc.com>2010-05-07 00:57:12 +0000
commita3032807f948bcba079bf849e25fb3b79e522500 (patch)
tree2aee6fae9db811edc5e6b72d8cb5e720d4ed62ae /Lib
parent208d28cd41ad5cb4bd8665923d486d96232d9a42 (diff)
downloadcpython3-a3032807f948bcba079bf849e25fb3b79e522500.tar.gz
regrtest.py: disable replace_stdout() on Windows until it is fixed
See issue #8533 (problem with newlines on Windows).
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/regrtest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index e92a3f700a..00ea0d62b1 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -733,6 +733,9 @@ def findtests(testdir=None, stdtests=STDTESTS, nottests=NOTTESTS):
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,