summaryrefslogtreecommitdiff
path: root/Lib/timeit.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@redhat.com>2018-06-06 17:23:50 +0200
committerGitHub <noreply@github.com>2018-06-06 17:23:50 +0200
commit492d6424a7ca907c8ec1df21e51062e8f3d88e32 (patch)
treed88718e085da33d6a105054e201611ee3aca1ddf /Lib/timeit.py
parent45e4efba7fa2abe61d25e4f8b5bf482e19ff1280 (diff)
downloadcpython-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