summaryrefslogtreecommitdiffstats
path: root/Lib/test/support.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-05-02 17:24:51 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-05-02 17:24:51 (GMT)
commitf58087ba29d79feae0eb05b9a3db01ba3b24f163 (patch)
treead7fd1223db0699c6e7d8ecf7758776650e44edb /Lib/test/support.py
parent4d39f6e09a5c0a0e09eb51d678bacd1adaa3f2ca (diff)
downloadcpython-f58087ba29d79feae0eb05b9a3db01ba3b24f163.zip
cpython-f58087ba29d79feae0eb05b9a3db01ba3b24f163.tar.gz
cpython-f58087ba29d79feae0eb05b9a3db01ba3b24f163.tar.bz2
Issue #8533: revert r80694; try a different fix: regrtest uses backslashreplace
error handler for stdout to avoid UnicodeEncodeError (write non-ASCII character to stdout using ASCII encoding)
Diffstat (limited to 'Lib/test/support.py')
-rw-r--r--Lib/test/support.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index 3c4d5d6..4ea6c05 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -1020,7 +1020,7 @@ def check_impl_detail(**guards):
def _run_suite(suite):
"""Run tests from a unittest.TestSuite-derived class."""
if verbose:
- runner = unittest.TextTestRunner(sys.stderr, verbosity=2)
+ runner = unittest.TextTestRunner(sys.stdout, verbosity=2)
else:
runner = BasicTestRunner()