Skip to content

[2.7] bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)#7456

Merged
vstinner merged 1 commit intopython:2.7from
vstinner:fdcount27
Jun 6, 2018
Merged

[2.7] bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)#7456
vstinner merged 1 commit intopython:2.7from
vstinner:fdcount27

Conversation

@vstinner
Copy link
Copy Markdown
Member

@vstinner vstinner commented Jun 6, 2018

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 492d642)

https://bugs.python.org/issue33773

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 492d642)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants