Staging
v0.5.1
https://github.com/python/cpython
Revision 97fe1b493df979956c66c57095bc7fce22104faf authored by Miss Islington (bot) on 06 June 2018, 16:09:18 UTC, committed by GitHub on 06 June 2018, 16:09:18 UTC

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>
1 parent 2bc1946
Raw File
Tip revision: 97fe1b493df979956c66c57095bc7fce22104faf authored by Miss Islington (bot) on 06 June 2018, 16:09:18 UTC
bpo-33773: Fix test.support.fd_count() on Linux/FreBSD (GH-7421)
Tip revision: 97fe1b4
.bzrignore
.purify
autom4te.cache
config.log
config.cache
config.status
config.status.lineno
db_home
Makefile
buildno
python
build
Makefile.pre
platform
pybuilddir.txt
pyconfig.h
libpython*.a
libpython*.so*
python.exe
python-gdb.py
reflog.txt
tags
TAGS
.gdb_history
Doc/tools/sphinx
Doc/tools/jinja
Doc/tools/jinja2
Doc/tools/pygments
Doc/tools/docutils
Misc/python.pc
Modules/Setup
Modules/Setup.config
Modules/Setup.local
Modules/config.c
Modules/ld_so_aix
Parser/pgen
Lib/test/data/*
Lib/lib2to3/Grammar*.pickle
Lib/lib2to3/PatternGrammar*.pickle
__pycache__
.coverage
coverage/*
htmlcov/*
back to top