diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-06-06 17:23:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-06 17:23:50 +0200 |
commit | 492d6424a7ca907c8ec1df21e51062e8f3d88e32 (patch) | |
tree | d88718e085da33d6a105054e201611ee3aca1ddf /Lib/timeit.py | |
parent | 45e4efba7fa2abe61d25e4f8b5bf482e19ff1280 (diff) | |
download | cpython-git-492d6424a7ca907c8ec1df21e51062e8f3d88e32.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.
Diffstat (limited to 'Lib/timeit.py')
0 files changed, 0 insertions, 0 deletions