]> granicus.if.org Git - python/commit
bpo-31009: Fix support.fd_count() on Windows (#2862)
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 25 Jul 2017 15:45:53 +0000 (17:45 +0200)
committerGitHub <noreply@github.com>
Tue, 25 Jul 2017 15:45:53 +0000 (17:45 +0200)
commit302bbbe9ba5c72559913e2ea006c921f698a729d
tree78ed5a4f6ed2bf2240d519fee8ef96396e4b81bd
parent90addd6d1c1fde4ec12a6b554d1deacfac6a879c
bpo-31009: Fix support.fd_count() on Windows (#2862)

* bpo-31009: Fix support.fd_count() on Windows

On Windows, test.support.fd_count() now calls
msvcrt.CrtSetReportMode() to not kill the process nor log any error
on stderr on os.dup(fd) if the file descriptor is invalid.

* Fix for release mode
Lib/test/support/__init__.py
Lib/test/test_regrtest.py