cpython/Lib/test/support
Miss Islington (bot) 97fe1b493d
bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)
Substract one because listdir() opens internally a file
descriptor to list the content of the /proc/self/fd/ directory.

Add test_support.test_fd_count().

Move also MAXFD code before msvcrt.CrtSetReportMode(), to make sure
that the report mode is always restored on failure.
(cherry picked from commit 492d6424a7)

Co-authored-by: Victor Stinner <vstinner@redhat.com>
2018-06-06 09:09:18 -07:00
..
__init__.py bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421) 2018-06-06 09:09:18 -07:00
script_helper.py [3.6] Improves the ability to build in CI (GH-5730) 2018-02-17 20:35:03 -08:00