/[Apache-SVN]
ViewVC logotype

Revision 1883337


Jump to revision: Previous Next
Author: jun66j5
Date: Thu Nov 12 06:30:36 2020 UTC (3 years, 5 months ago)
Changed paths: 2
Log Message:
Remove uses of os.dup2() from run_tests.py in order to adapt the new console
reader and writer on Windows since Python 3.6.

* build/run_tests.py
  (open_logfile): New function returning file-like object which is reassignable
  sys.stdout and sys.stderr.
  (TestHarness.run): Use open_logfile() instead of codecs.open().
  (TestHarness._open_log): Ditto.
  (TestHarness._run_py_test): Reassign sys.stdout and sys.stderr instead of
  uses of os.dup2().

* subversion/tests/cmdline/svntest/main.py
  (LoggingStdoutHandler): New function to use the value of sys.stdout at call
  time.
  (parse_options): Use LoggingStdoutHandler() instead of
  StreamHandler(sys.stdout).

Tested by: jcorvel
Reviewed by: jcorvel
             futatuki


Changed paths

Path Details
Directorysubversion/trunk/build/run_tests.py modified , text changed
Directorysubversion/trunk/subversion/tests/cmdline/svntest/main.py modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26