diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2018-06-06 09:09:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-06 09:09:18 -0700 |
commit | 97fe1b493df979956c66c57095bc7fce22104faf (patch) | |
tree | c3661a165c27142dde0b93453bac4318632eedd0 /Lib/test/test_asyncio/test_tasks.py | |
parent | 2bc1946fb02e140f5f5ac21a1afa2763615ad16b (diff) | |
download | cpython-git-97fe1b493df979956c66c57095bc7fce22104faf.tar.gz |
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 'Lib/test/test_asyncio/test_tasks.py')
0 files changed, 0 insertions, 0 deletions