print("== ", os.getcwd()) fails if the current working directory is not ASCII
whereas sys.stdout encoding is ASCII.
on the command line.
"""
+ replace_stdout()
+
support.record_original_stdout(sys.stdout)
try:
opts, args = getopt.getopt(sys.argv[1:], 'hvqxsSrf:lu:t:TD:NLR:FwWM:nj:',
elif o in ('-j', '--multiprocess'):
use_mp = int(a)
elif o == '--slaveargs':
- replace_stdout()
args, kwargs = json.loads(a)
try:
result = runtest(*args, **kwargs)
else:
tests = iter(selected)
- replace_stdout()
-
if use_mp:
try:
from threading import Thread