ansible-test - Remove obsolete display of MAXFD.

Use of ``subprocess.MAXFD`` only worked on Python 2.x, which is no longer supported.
pull/77141/head
Matt Clay 3 years ago
parent 3f924b59f2
commit dc6b0d4857

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - Remove obsolete ``MAXFD`` display.

@ -14,7 +14,6 @@ from .init import (
from .util import (
ApplicationError,
display,
MAXFD,
)
from .delegation import (
@ -62,7 +61,6 @@ def main(cli_args=None): # type: (t.Optional[t.List[str]]) -> None
configure_timeout(config)
display.info('RLIMIT_NOFILE: %s' % (CURRENT_RLIMIT_NOFILE,), verbosity=2)
display.info('MAXFD: %d' % MAXFD, verbosity=2)
delegate_args = None
target_names = None

@ -52,12 +52,6 @@ TValue = t.TypeVar('TValue')
PYTHON_PATHS = {} # type: t.Dict[str, str]
try:
# noinspection PyUnresolvedReferences
MAXFD = subprocess.MAXFD
except AttributeError:
MAXFD = -1
COVERAGE_CONFIG_NAME = 'coveragerc'
ANSIBLE_TEST_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

Loading…
Cancel
Save