commit | 492d6424a7ca907c8ec1df21e51062e8f3d88e32 | [log] [tgz] |
---|---|---|
author | Victor Stinner <vstinner@redhat.com> | Wed Jun 06 17:23:50 2018 +0200 |
committer | GitHub <noreply@github.com> | Wed Jun 06 17:23:50 2018 +0200 |
tree | d88718e085da33d6a105054e201611ee3aca1ddf | |
parent | 45e4efba7fa2abe61d25e4f8b5bf482e19ff1280 [diff] |
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.