mirror of
https://github.com/python/cpython.git
synced 2025-10-17 04:08:28 +00:00
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)
This commit is contained in:
parent
4d39f6e09a
commit
f58087ba29
3 changed files with 16 additions and 5 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue