tests/test-gendoc-da.t
author Manuel Jacob <me@manueljacob.de>
Sat, 11 Jul 2020 06:03:22 +0200
changeset 45078 fa270dcbdb55
parent 28809 7a1ad08b9ff5
permissions -rw-r--r--
procutil: back out 8403cc54bc83 (make ....procutil.stderr unbuffered) Changeset 8403cc54bc83 introduced code that opens a second file object referring to the stderr file descriptor. This broke tests on Windows. The reason is that on Windows, sys.stderr is buffered and procutil.stderr closed the file descriptor when it got garbage collected before sys.stderr had the chance to flush buffered data. `procutil.stdout` had the same problem for a long time, but we didn’t realize, as in CI test runs, stdout is not a TTY and in this case no second file object is opened.

#require docutils gettext

  $ $TESTDIR/check-gendoc da
  checking for parse errors