[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1743556 - /subversion/trunk/build/run_tests.py

From: Evgeny Kotkov <evgeny.kotkov_at_visualsvn.com>
Date: Fri, 13 May 2016 12:58:01 +0300

Stefan Fuhrmann <stefan2_at_apache.org> 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
Received on 2016-05-13 11:58:32 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.