diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-06-06 16:09:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-06 16:09:18 (GMT) |
commit | 97fe1b493df979956c66c57095bc7fce22104faf (patch) | |
tree | c3661a165c27142dde0b93453bac4318632eedd0 /Python/importlib.h | |
parent | 2bc1946fb02e140f5f5ac21a1afa2763615ad16b (diff) | |
download | cpython-97fe1b493df979956c66c57095bc7fce22104faf.zip cpython-97fe1b493df979956c66c57095bc7fce22104faf.tar.gz cpython-97fe1b493df979956c66c57095bc7fce22104faf.tar.bz2 |
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 492d6424a7ca907c8ec1df21e51062e8f3d88e32)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
Diffstat (limited to 'Python/importlib.h')
0 files changed, 0 insertions, 0 deletions