summaryrefslogtreecommitdiff
path: root/Lib/test/test_asyncio/test_tasks.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-06-06 09:09:18 -0700
committerGitHub <noreply@github.com>2018-06-06 09:09:18 -0700
commit97fe1b493df979956c66c57095bc7fce22104faf (patch)
treec3661a165c27142dde0b93453bac4318632eedd0 /Lib/test/test_asyncio/test_tasks.py
parent2bc1946fb02e140f5f5ac21a1afa2763615ad16b (diff)
downloadcpython-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