[issue7982] extend captured_output to simulate different stdout.encoding

Andrew Frost report at bugs.python.org
Tue Dec 3 19:48:48 EST 2019


Andrew Frost <adfrost at ucdavis.edu> added the comment:

in test_xmlrpc.py, it can replace this entire function
- https://github.com/python/cpython/blob/8f4ef3b019ce380022018587571b0f970e668de3/Lib/test/test_xmlrpc.py#L1344
in test_source_encoding.py, it can remove this line
- https://github.com/python/cpython/blob/8f4ef3b019ce380022018587571b0f970e668de3/Lib/test/test_source_encoding.py#L209

It could also be useful if a test file switches between encoding schemes frequently.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue7982>
_______________________________________


More information about the Python-bugs-list mailing list