[prev in list] [next in list] [prev in thread] [next in thread] 

List:       subversion-commits
Subject:    svn commit: r1884947 - /subversion/site/staging/docs/release-notes/1.14.html
From:       hartmannathan () apache ! org
Date:       2020-12-30 16:36:44
Message-ID: 20201230163644.C749417A1F0 () svn01-us-east ! apache ! org
[Download RAW message or body]

Author: hartmannathan
Date: Wed Dec 30 16:36:44 2020
New Revision: 1884947

URL: http://svn.apache.org/viewvc?rev=1884947&view=rev
Log:
In 'staging': 1.14 release notes: Add section #issues-py3-windows-os-dup

* docs/release-notes/1.14.html:
  (issues-py3-windows-os-dup): New subsection for r1883337, merged to 1.14.x
    branch in r1884484, awaiting release in 1.14.1.

Modified:
    subversion/site/staging/docs/release-notes/1.14.html

Modified: subversion/site/staging/docs/release-notes/1.14.html
URL: http://svn.apache.org/viewvc/subversion/site/staging/docs/release-notes/1.14.html?rev=1884947&r1=1884946&r2=1884947&view=diff
 ==============================================================================
--- subversion/site/staging/docs/release-notes/1.14.html (original)
+++ subversion/site/staging/docs/release-notes/1.14.html Wed Dec 30 16:36:44 2020
@@ -1348,6 +1348,55 @@ sequences.</p>
 
 </div> <!-- issues-py3-testsuite-windows -->
 
+<div class="h4" id="issues-py3-windows-os-dup">
+<h4>Cannot redirect test suite output to a log file with Python 3.6 or later on \
Windows +  <a class="sectionlink" href="#issues-py3-windows-os-dup"
+     title="Link to this section">&para;</a>
+</h4>
+
+<p>This issue affects Subversion 1.14.0 on Windows when using Python 3.6 or
+later due to changes in Python's handling of os.dup2().</p>
+
+<p>When using <tt>win-tests.py</tt> to run Subversion's unit tests on Windows
+and redirecting the output to a log file, the following errors may occur:</p>
+
+<pre>
+Testing Release configuration on local repository.
+[1/1] authz_tests.pyTraceback (most recent call last):
+  File "win-tests.py", line 1126, in <module>
+    failed = th.run(tests_to_run)
+  File "build\run_tests.py",
+line 590, in run
+    failed = self._run_local_schedulers(testlist)
+  File "build\run_tests.py",
+line 536, in _run_local_schedulers
+    failed = self._run_test(testcase, count, testcount) or failed
+  File "build\run_tests.py",
+line 947, in _run_test
+    failed = testcase(progabs, progdir, progbase, test_nums, dots_needed)
+  File "build\run_tests.py",
+line 853, in _run_py_test
+    print("PING")
+OSError: [WinError 6] The handle is invalid
+Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w'
+encoding='utf-8'>
+OSError: [WinError 6] The handle is invalid
+</pre>
+
+<p>Two workarounds are available:</p>
+
+<ul>
+<li>Define the <tt>PYTHONLEGACYWINDOWSSTDIO</tt> environment variable as
+described in <a href="https://stackoverflow.com/questions/52373180/python-on-windows-handle-invalid-when-redirecting-stdout-writing-to-file"
 +>this Stack Overflow question</a>, or:</li>
+<li>Pass the <tt>--log-to-stdout</tt> switch to <tt>win-tests.py</tt>.</li>
+</ul>
+
+<p>This issue is fixed as of Subversion 1.14.1. See
+<a href="http://svn.apache.org/r1883337">r1883337</a>.</p>
+
+</div> <!-- issues-py3-windows-os-dup -->
+
 </div>  <!-- python3-work-in-progress -->
 
 <div class="h3" id="issues-building-without-swig">


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic