Stefan Fuhrmann <[email protected]> writes:
>> And sys.stdout.write() works with strings, so this probably won't work
>> if tests are run with the --log-to-stdout option.
>
> That looks like a win-tests.py -only feature, although run_tests.py has
> remnants of that. If not, I'd have to add a wrapper around stdout.
I see the following with Python 3 on Linux:
$ make check LOG_TO_STDOUT=1
Traceback (most recent call last):
File "./build/run_tests.py", line 1054, in <module>
main()
File "./build/run_tests.py", line 1047, in main
failed = th.run(args[2:])
File "./build/run_tests.py", line 576, in run
failed = self._run_local_schedulers(testlist)
File "./build/run_tests.py", line 522, in _run_local_schedulers
failed = self._run_test(testcase, count, testcount) or failed
File "./build/run_tests.py", line 907, in _run_test
log.write(('START: %s\n' % progbase).encode())
TypeError: write() argument must be str, not bytes
Makefile:522: recipe for target 'check' failed
make: *** [check] Error 1
Regards,
Evgeny Kotkov