summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-06-13 14:56:03 (GMT)
committerGitHub <noreply@github.com>2022-06-13 14:56:03 (GMT)
commit3ceb4b8d3ad48101e67da8fb8f581d3377863bfa (patch)
tree6746b2bc59319492d2d4ea7d0ebbfc867f5912ca /Lib/test/libregrtest
parent65ff27c7d30b84655bf8caf6e396c65485708148 (diff)
downloadcpython-3ceb4b8d3ad48101e67da8fb8f581d3377863bfa.zip
cpython-3ceb4b8d3ad48101e67da8fb8f581d3377863bfa.tar.gz
cpython-3ceb4b8d3ad48101e67da8fb8f581d3377863bfa.tar.bz2
gh-84623: Remove unused imports in tests (#93772)
Diffstat (limited to 'Lib/test/libregrtest')
-rw-r--r--Lib/test/libregrtest/setup.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/libregrtest/setup.py b/Lib/test/libregrtest/setup.py
index cfc1b82..4298c92 100644
--- a/Lib/test/libregrtest/setup.py
+++ b/Lib/test/libregrtest/setup.py
@@ -141,7 +141,7 @@ def _adjust_resource_limits():
"""Adjust the system resource limits (ulimit) if needed."""
try:
import resource
- from resource import RLIMIT_NOFILE, RLIM_INFINITY
+ from resource import RLIMIT_NOFILE
except ImportError:
return
fd_limit, max_fds = resource.getrlimit(RLIMIT_NOFILE)