Skip to content

Instantly share code, notes, and snippets.

@Sigmanificient
Created January 2, 2026 13:39
Show Gist options
  • Select an option

  • Save Sigmanificient/4191fa9842691deea83711e4e5be1580 to your computer and use it in GitHub Desktop.

Select an option

Save Sigmanificient/4191fa9842691deea83711e4e5be1580 to your computer and use it in GitHub Desktop.
structuredAttrs is enabled
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/a9qw6flmr7ipzxah2c1b92svxxp5fz18-virtualenv-20.33.1.tar.gz
source root is virtualenv-20.33.1
setting SOURCE_DATE_EPOCH to timestamp 1580601600 of file "virtualenv-20.33.1/tox.ini"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing pypaBuildPhase
Setting SETUPTOOLS_SCM_PRETEND_VERSION to 20.33.1
Including all tracked files automatically
Creating a wheel...
pypa build flags: --no-isolation --outdir dist/ --wheel
* Getting build dependencies for wheel...
* Building wheel...
Successfully built virtualenv-20.33.1-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
Running phase: pythonRuntimeDepsCheckHook
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" }
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for virtualenv-20.33.1-py3-none-any.whl
Finished executing pythonRuntimeDepsCheck
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Executing pypaInstallPhase
Successfully installed virtualenv-20.33.1-py3-none-any.whl
Finished executing pypaInstallPhase
Running phase: pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
shrinking RPATHs of ELF executables and libraries in /nix/store/nphvx5z1n6x8rr4mfag6f63si3vk6x1q-python3.13-virtualenv-20.33.1-dist
checking for references to /build/ in /nix/store/nphvx5z1n6x8rr4mfag6f63si3vk6x1q-python3.13-virtualenv-20.33.1-dist...
patching script interpreter paths in /nix/store/nphvx5z1n6x8rr4mfag6f63si3vk6x1q-python3.13-virtualenv-20.33.1-dist
shrinking RPATHs of ELF executables and libraries in /nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1
checking for references to /build/ in /nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1...
patching script interpreter paths in /nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1
stripping (with command strip and flags -S -p) in /nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib /nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/bin
Rewriting #!/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13 to #!/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9
wrapping `/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/bin/virtualenv'...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
Running phase: installCheckPhase
@nix { "action": "setPhase", "phase": "installCheckPhase" }
no Makefile or custom installCheckPhase, doing nothing
Running phase: pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
Running phase: pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
Running phase: pythonImportsCheckPhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: virtualenv
Running phase: pytestCheckPhase
@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
Executing pytestCheckPhase
pytest flags: -m pytest --ignore-glob=tests/unit/create/test_creator.py --ignore-glob=tests/unit/seed/embed/test_bootstrap_link_via_app_data.py -k not\ \(test_create_no_seed\)\ and\ not\ \(test_seed_link_via_app_data\)\ and\ not\ \(test_bad_exe_py_info_no_raise\)\ and\ not\ \(test_py_info_cache_invalidation_on_py_info_change\)
============================= test session starts ==============================
platform linux -- Python 3.13.9, pytest-8.4.2, pluggy-1.6.0
rootdir: /build/virtualenv-20.33.1
configfile: pyproject.toml
plugins: flaky-3.8.1, freezegun-0.4.2, mock-3.15.1, timeout-2.4.0, time-machine-2.19.0
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 329 items / 2 deselected / 327 selected
tests/unit/activation/test_activation_support.py ............ [ 3%]
tests/unit/activation/test_activator.py . [ 3%]
tests/unit/activation/test_bash.py .... [ 5%]
tests/unit/activation/test_batch.py ss [ 5%]
tests/unit/activation/test_csh.py s [ 6%]
tests/unit/activation/test_fish.py s [ 6%]
tests/unit/activation/test_nushell.py s [ 6%]
tests/unit/activation/test_python_activator.py . [ 7%]
tests/unit/activation/test_bash.py .. [ 7%]
tests/unit/activation/test_batch.py ss [ 8%]
tests/unit/activation/test_csh.py s [ 8%]
tests/unit/activation/test_fish.py s [ 8%]
tests/unit/activation/test_nushell.py s [ 9%]
tests/unit/activation/test_python_activator.py . [ 9%]
tests/unit/activation/test_batch.py .. [ 10%]
tests/unit/activation/test_csh.py .. [ 10%]
tests/unit/activation/test_fish.py .. [ 11%]
tests/unit/activation/test_nushell.py . [ 11%]
tests/unit/activation/test_powershell.py .. [ 12%]
tests/unit/config/cli/test_parser.py ... [ 13%]
tests/unit/config/test___main__.py ....... [ 15%]
tests/unit/config/test_env_var.py ........ [ 17%]
tests/unit/config/test_ini.py . [ 18%]
tests/unit/create/test_interpreters.py . [ 18%]
tests/unit/create/via_global_ref/builtin/cpython/test_cpython3_win.py .. [ 18%]
..... [ 20%]
tests/unit/create/via_global_ref/builtin/pypy/test_pypy3.py ... [ 21%]
tests/unit/create/via_global_ref/test_api.py . [ 21%]
tests/unit/discovery/py_info/test_py_info.py ........................... [ 29%]
...................s..s [ 37%]
tests/unit/discovery/py_info/test_py_info_exe_based_of.py .............. [ 41%]
........... [ 44%]
tests/unit/discovery/test_discovery.py ........................ [ 51%]
tests/unit/discovery/test_py_spec.py ................................... [ 62%]
.................. [ 68%]
tests/unit/discovery/windows/test_windows.py ssssssssssss [ 71%]
tests/unit/discovery/windows/test_windows_pep514.py ss [ 72%]
tests/unit/seed/embed/test_base_embed.py .............ssss. [ 77%]
tests/unit/seed/wheels/test_acquire.py ......... [ 80%]
tests/unit/seed/wheels/test_acquire_find_wheel.py .... [ 81%]
tests/unit/seed/wheels/test_bundle.py ..... [ 83%]
tests/unit/seed/wheels/test_periodic_update.py ......................... [ 91%]
.. [ 91%]
tests/unit/seed/wheels/test_wheels_util.py ..... [ 93%]
tests/unit/test_file_limit.py F [ 93%]
tests/unit/test_run.py .... [ 94%]
tests/unit/test_util.py .. [ 95%]
tests/unit/activation/test_powershell.py ss [ 96%]
tests/unit/create/test_interpreters.py . [ 96%]
tests/unit/create/via_global_ref/test_build_c_ext.py .. [ 96%]
tests/unit/seed/embed/test_pip_invoke.py .... [ 98%]
tests/integration/test_cachedir_tag.py s [ 98%]
tests/integration/test_run_int.py s [ 98%]
tests/integration/test_zipapp.py ssss [100%]
=================================== FAILURES ===================================
___________________________ test_too_many_open_files ___________________________
tmp_path = PosixPath('/build/pytest-of-nixbld/pytest-0/test_too_many_open_files0')
@pytest.mark.skipif(sys.platform == "win32", reason="resource module not available on Windows")
def test_too_many_open_files(tmp_path):
"""
Test that we get a specific error message when we have too many open files.
"""
import resource # noqa: PLC0415
soft_limit, hard_limit = resource.getrlimit(resource.RLIMIT_NOFILE)
if soft_limit > 1024:
pytest.skip("soft limit for open files is too high to reliably trigger the error")
# Lower the soft limit to a small number to trigger the error
try:
resource.setrlimit(resource.RLIMIT_NOFILE, (32, hard_limit))
except ValueError:
pytest.skip("could not lower the soft limit for open files")
# Keep some file descriptors open to make it easier to trigger the error
fds = []
try:
fds.extend(os.open(os.devnull, os.O_RDONLY) for _ in range(20))
with pytest.raises(SystemExit) as excinfo:
> cli_run([str(tmp_path / "venv")])
excinfo = <ExceptionInfo for raises contextmanager>
fd = 30
fds = [11, 12, 13, 14, 15, 16, ...]
hard_limit = 1048576
resource = <module 'resource' from '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/lib/python3.13/lib-dynload/resource.cpython-313-x86_64-linux-gnu.so'>
soft_limit = 1024
tmp_path = PosixPath('/build/pytest-of-nixbld/pytest-0/test_too_many_open_files0')
tests/unit/test_file_limit.py:34:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/run/__init__.py:31: in cli_run
of_session = session_via_cli(args, options, setup_logging, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
args = ['/build/pytest-of-nixbld/pytest-0/test_too_many_open_files0/venv']
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
options = None
setup_logging = True
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/run/__init__.py:49: in session_via_cli
parser, elements = build_parser(args, options, setup_logging, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
args = ['/build/pytest-of-nixbld/pytest-0/test_too_many_open_files0/venv']
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
options = None
setup_logging = True
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/run/__init__.py:78: in build_parser
parser._interpreter = interpreter = discover.interpreter # noqa: SLF001
^^^^^^^^^^^^^^^^^^^^
args = ['/build/pytest-of-nixbld/pytest-0/test_too_many_open_files0/venv']
discover = Builtin discover of python_spec='/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
options = VirtualEnvOptions(with_traceback=False, verbose=2, quiet=0, env=environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx...0/session-app-data0, reset_app_data=False, upgrade_embed_wheels=False, discovery=builtin, python=[], try_first_with=[])
parser = VirtualEnvConfigParser(prog='virtualenv', usage=None, description=None, formatter_class=<class 'virtualenv.config.cli.parser.HelpFormatter'>, conflict_handler='error', add_help=False)
setup_logging = True
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/discovery/discover.py:41: in interpreter
self._interpreter = self.run()
^^^^^^^^^^
self = Builtin discover of python_spec='/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/discovery/builtin.py:64: in run
result = get_interpreter(python_spec, self.try_first_with, self.app_data, self._env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
python_spec = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
self = Builtin discover of python_spec='/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/discovery/builtin.py:81: in get_interpreter
for interpreter, impl_must_match in propose_interpreters(spec, try_first_with, app_data, env):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app_data = AppDataDiskFolder(/build/pytest-of-nixbld/pytest-0/session-app-data0)
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
key = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
proposed_paths = set()
spec = PythonSpec(path=/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13)
try_first_with = []
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/discovery/builtin.py:112: in propose_interpreters
yield PythonInfo.from_exe(exe_raw, app_data, env=env), True
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app_data = AppDataDiskFolder(/build/pytest-of-nixbld/pytest-0/session-app-data0)
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
exe_id = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
exe_raw = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
spec = PythonSpec(path=/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13)
tested_exes = {'/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'}
try_first_with = []
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/discovery/py_info.py:455: in from_exe
proposed = from_exe(cls, app_data, exe, env=env, raise_on_error=raise_on_error, ignore_cache=ignore_cache)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app_data = AppDataDiskFolder(/build/pytest-of-nixbld/pytest-0/session-app-data0)
cls = <class 'virtualenv.discovery.py_info.PythonInfo'>
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
exe = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
from_exe = <function from_exe at 0x7ffff5634040>
ignore_cache = False
raise_on_error = True
resolve_to_host = True
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'virtualenv.discovery.py_info.PythonInfo'>
app_data = AppDataDiskFolder(/build/pytest-of-nixbld/pytest-0/session-app-data0)
exe = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
raise_on_error = True, ignore_cache = False
def from_exe(cls, app_data, exe, env=None, raise_on_error=True, ignore_cache=False): # noqa: FBT002, PLR0913
env = os.environ if env is None else env
result = _get_from_cache(cls, app_data, exe, env, ignore_cache=ignore_cache)
if isinstance(result, Exception):
if raise_on_error:
> raise result
E RuntimeError: failed to query /nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13 with code 24 err: 'Too many open files'
app_data = AppDataDiskFolder(/build/pytest-of-nixbld/pytest-0/session-app-data0)
cls = <class 'virtualenv.discovery.py_info.PythonInfo'>
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
exe = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
ignore_cache = False
raise_on_error = True
result = RuntimeError("failed to query /nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13 with code 24 err: 'Too many open files'")
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/discovery/cached_py_info.py:35: RuntimeError
---------------------------- Captured stdout setup -----------------------------
31283 Attempting to acquire lock 140737293824112 on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock [DEBUG _api:331]
31283 Lock 140737293824112 acquired on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock [DEBUG _api:334]
31284 Attempting to release lock 140737293824112 on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock [DEBUG _api:364]
31285 Lock 140737293824112 released on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock [DEBUG _api:367]
------------------------------ Captured log setup ------------------------------
DEBUG filelock:_api.py:331 Attempting to acquire lock 140737293824112 on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
DEBUG filelock:_api.py:334 Lock 140737293824112 acquired on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
DEBUG filelock:_api.py:364 Attempting to release lock 140737293824112 on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
DEBUG filelock:_api.py:367 Lock 140737293824112 released on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
---------------------------- Captured log teardown -----------------------------
DEBUG filelock:_api.py:331 Attempting to acquire lock 140737289003632 on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
DEBUG filelock:_api.py:334 Lock 140737289003632 acquired on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
DEBUG filelock:_api.py:364 Attempting to release lock 140737289003632 on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
DEBUG filelock:_api.py:367 Lock 140737289003632 released on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
=============================== warnings summary ===============================
../../nix/store/y01qc8w1k3v7iff5phc4d231yybphr54-python3.13-pytest-8.4.2/lib/python3.13/site-packages/_pytest/config/__init__.py:1474
/nix/store/y01qc8w1k3v7iff5phc4d231yybphr54-python3.13-pytest-8.4.2/lib/python3.13/site-packages/_pytest/config/__init__.py:1474: PytestConfigWarning: Unknown config option: env
self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/unit/test_file_limit.py::test_too_many_open_files - RuntimeError: failed to query /nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-p...
= 1 failed, 288 passed, 38 skipped, 2 deselected, 1 warning in 63.73s (0:01:03) =
structuredAttrs is enabled
Sourcing python-remove-tests-dir-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing python-remove-bin-bytecode-hook.sh
Sourcing pypa-build-hook
Using pypaBuildPhase
Sourcing python-runtime-deps-check-hook
Using pythonRuntimeDepsCheckHook
Sourcing pypa-install-hook
Using pypaInstallPhase
Sourcing python-imports-check-hook.sh
Using pythonImportsCheckPhase
Sourcing python-namespaces-hook
Sourcing python-catch-conflicts-hook.sh
Sourcing pytest-check-hook
Using pytestCheckPhase
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/a9qw6flmr7ipzxah2c1b92svxxp5fz18-virtualenv-20.33.1.tar.gz
source root is virtualenv-20.33.1
setting SOURCE_DATE_EPOCH to timestamp 1580601600 of file "virtualenv-20.33.1/tox.ini"
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
no configure script, doing nothing
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "buildPhase" }
Executing pypaBuildPhase
Setting SETUPTOOLS_SCM_PRETEND_VERSION to 20.33.1
Including all tracked files automatically
Creating a wheel...
pypa build flags: --no-isolation --outdir dist/ --wheel
* Getting build dependencies for wheel...
* Building wheel...
Successfully built virtualenv-20.33.1-py3-none-any.whl
Finished creating a wheel...
Finished executing pypaBuildPhase
Running phase: pythonRuntimeDepsCheckHook
@nix { "action": "setPhase", "phase": "pythonRuntimeDepsCheckHook" }
Executing pythonRuntimeDepsCheck
Checking runtime dependencies for virtualenv-20.33.1-py3-none-any.whl
Finished executing pythonRuntimeDepsCheck
Running phase: installPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Executing pypaInstallPhase
Successfully installed virtualenv-20.33.1-py3-none-any.whl
Finished executing pypaInstallPhase
Running phase: pythonOutputDistPhase
@nix { "action": "setPhase", "phase": "pythonOutputDistPhase" }
Executing pythonOutputDistPhase
Finished executing pythonOutputDistPhase
Running phase: fixupPhase
@nix { "action": "setPhase", "phase": "fixupPhase" }
shrinking RPATHs of ELF executables and libraries in /nix/store/nphvx5z1n6x8rr4mfag6f63si3vk6x1q-python3.13-virtualenv-20.33.1-dist
checking for references to /build/ in /nix/store/nphvx5z1n6x8rr4mfag6f63si3vk6x1q-python3.13-virtualenv-20.33.1-dist...
patching script interpreter paths in /nix/store/nphvx5z1n6x8rr4mfag6f63si3vk6x1q-python3.13-virtualenv-20.33.1-dist
shrinking RPATHs of ELF executables and libraries in /nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1
checking for references to /build/ in /nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1...
patching script interpreter paths in /nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1
stripping (with command strip and flags -S -p) in /nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib /nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/bin
Rewriting #!/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13 to #!/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9
wrapping `/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/bin/virtualenv'...
Executing pythonRemoveTestsDir
Finished executing pythonRemoveTestsDir
Running phase: installCheckPhase
@nix { "action": "setPhase", "phase": "installCheckPhase" }
no Makefile or custom installCheckPhase, doing nothing
Running phase: pythonCatchConflictsPhase
@nix { "action": "setPhase", "phase": "pythonCatchConflictsPhase" }
Running phase: pythonRemoveBinBytecodePhase
@nix { "action": "setPhase", "phase": "pythonRemoveBinBytecodePhase" }
Running phase: pythonImportsCheckPhase
@nix { "action": "setPhase", "phase": "pythonImportsCheckPhase" }
Executing pythonImportsCheckPhase
Check whether the following modules can be imported: virtualenv
Running phase: pytestCheckPhase
@nix { "action": "setPhase", "phase": "pytestCheckPhase" }
Executing pytestCheckPhase
pytest flags: -m pytest --ignore-glob=tests/unit/create/test_creator.py --ignore-glob=tests/unit/seed/embed/test_bootstrap_link_via_app_data.py -k not\ \(test_create_no_seed\)\ and\ not\ \(test_seed_link_via_app_data\)\ and\ not\ \(test_bad_exe_py_info_no_raise\)\ and\ not\ \(test_py_info_cache_invalidation_on_py_info_change\)
============================= test session starts ==============================
platform linux -- Python 3.13.9, pytest-8.4.2, pluggy-1.6.0
rootdir: /build/virtualenv-20.33.1
configfile: pyproject.toml
plugins: flaky-3.8.1, freezegun-0.4.2, mock-3.15.1, timeout-2.4.0, time-machine-2.19.0
timeout: 600.0s
timeout method: signal
timeout func_only: False
collecting ... 
collecting 183 items 
collected 329 items / 2 deselected / 327 selected 
tests/unit/activation/test_activation_support.py ............ [ 3%]
tests/unit/activation/test_activator.py . [ 3%]
tests/unit/activation/test_bash.py .... [ 5%]
tests/unit/activation/test_batch.py ss [ 5%]
tests/unit/activation/test_csh.py s [ 6%]
tests/unit/activation/test_fish.py s [ 6%]
tests/unit/activation/test_nushell.py s [ 6%]
tests/unit/activation/test_python_activator.py . [ 7%]
tests/unit/activation/test_bash.py .. [ 7%]
tests/unit/activation/test_batch.py ss [ 8%]
tests/unit/activation/test_csh.py s [ 8%]
tests/unit/activation/test_fish.py s [ 8%]
tests/unit/activation/test_nushell.py s [ 9%]
tests/unit/activation/test_python_activator.py . [ 9%]
tests/unit/activation/test_batch.py .. [ 10%]
tests/unit/activation/test_csh.py .. [ 10%]
tests/unit/activation/test_fish.py .. [ 11%]
tests/unit/activation/test_nushell.py . [ 11%]
tests/unit/activation/test_powershell.py .. [ 12%]
tests/unit/config/cli/test_parser.py ... [ 13%]
tests/unit/config/test___main__.py ....... [ 15%]
tests/unit/config/test_env_var.py ........ [ 17%]
tests/unit/config/test_ini.py . [ 18%]
tests/unit/create/test_interpreters.py . [ 18%]
tests/unit/create/via_global_ref/builtin/cpython/test_cpython3_win.py .. [ 18%]
..... [ 20%]
tests/unit/create/via_global_ref/builtin/pypy/test_pypy3.py ... [ 21%]
tests/unit/create/via_global_ref/test_api.py . [ 21%]
tests/unit/discovery/py_info/test_py_info.py ........................... [ 29%]
...................s..s [ 37%]
tests/unit/discovery/py_info/test_py_info_exe_based_of.py .............. [ 41%]
........... [ 44%]
tests/unit/discovery/test_discovery.py ........................ [ 51%]
tests/unit/discovery/test_py_spec.py ................................... [ 62%]
.................. [ 68%]
tests/unit/discovery/windows/test_windows.py ssssssssssss [ 71%]
tests/unit/discovery/windows/test_windows_pep514.py ss [ 72%]
tests/unit/seed/embed/test_base_embed.py .............ssss. [ 77%]
tests/unit/seed/wheels/test_acquire.py ......... [ 80%]
tests/unit/seed/wheels/test_acquire_find_wheel.py .... [ 81%]
tests/unit/seed/wheels/test_bundle.py ..... [ 83%]
tests/unit/seed/wheels/test_periodic_update.py ......................... [ 91%]
.. [ 91%]
tests/unit/seed/wheels/test_wheels_util.py ..... [ 93%]
tests/unit/test_file_limit.py F [ 93%]
tests/unit/test_run.py .... [ 94%]
tests/unit/test_util.py .. [ 95%]
tests/unit/activation/test_powershell.py ss [ 96%]
tests/unit/create/test_interpreters.py . [ 96%]
tests/unit/create/via_global_ref/test_build_c_ext.py .. [ 96%]
tests/unit/seed/embed/test_pip_invoke.py .... [ 98%]
tests/integration/test_cachedir_tag.py s [ 98%]
tests/integration/test_run_int.py s [ 98%]
tests/integration/test_zipapp.py ssss [100%]
=================================== FAILURES ===================================
___________________________ test_too_many_open_files ___________________________
tmp_path = PosixPath('/build/pytest-of-nixbld/pytest-0/test_too_many_open_files0')
@pytest.mark.skipif(sys.platform == "win32", reason="resource module not available on Windows")
def test_too_many_open_files(tmp_path):
 """
 Test that we get a specific error message when we have too many open files.
 """
import resource # noqa: PLC0415

soft_limit, hard_limit = resource.getrlimit(resource.RLIMIT_NOFILE)
if soft_limit > 1024:
pytest.skip("soft limit for open files is too high to reliably trigger the error")

# Lower the soft limit to a small number to trigger the error
try:
resource.setrlimit(resource.RLIMIT_NOFILE, (32, hard_limit))
except ValueError:
pytest.skip("could not lower the soft limit for open files")

# Keep some file descriptors open to make it easier to trigger the error
fds = []
try:
fds.extend(os.open(os.devnull, os.O_RDONLY) for _ in range(20))

with pytest.raises(SystemExit) as excinfo:
> cli_run([str(tmp_path / "venv")])
excinfo = <ExceptionInfo for raises contextmanager>
fd = 30
fds = [11, 12, 13, 14, 15, 16, ...]
hard_limit = 1048576
resource = <module 'resource' from '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/lib/python3.13/lib-dynload/resource.cpython-313-x86_64-linux-gnu.so'>
soft_limit = 1024
tmp_path = PosixPath('/build/pytest-of-nixbld/pytest-0/test_too_many_open_files0')
tests/unit/test_file_limit.py:34:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/run/__init__.py:31: in cli_run
of_session = session_via_cli(args, options, setup_logging, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
args = ['/build/pytest-of-nixbld/pytest-0/test_too_many_open_files0/venv']
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
options = None
setup_logging = True
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/run/__init__.py:49: in session_via_cli
parser, elements = build_parser(args, options, setup_logging, env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
args = ['/build/pytest-of-nixbld/pytest-0/test_too_many_open_files0/venv']
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
options = None
setup_logging = True
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/run/__init__.py:78: in build_parser
parser._interpreter = interpreter = discover.interpreter # noqa: SLF001
^^^^^^^^^^^^^^^^^^^^
args = ['/build/pytest-of-nixbld/pytest-0/test_too_many_open_files0/venv']
discover = Builtin discover of python_spec='/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
options = VirtualEnvOptions(with_traceback=False, verbose=2, quiet=0, env=environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx...0/session-app-data0, reset_app_data=False, upgrade_embed_wheels=False, discovery=builtin, python=[], try_first_with=[])
parser = VirtualEnvConfigParser(prog='virtualenv', usage=None, description=None, formatter_class=<class 'virtualenv.config.cli.parser.HelpFormatter'>, conflict_handler='error', add_help=False)
setup_logging = True
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/discovery/discover.py:41: in interpreter
self._interpreter = self.run()
^^^^^^^^^^
self = Builtin discover of python_spec='/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/discovery/builtin.py:64: in run
result = get_interpreter(python_spec, self.try_first_with, self.app_data, self._env)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
python_spec = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
self = Builtin discover of python_spec='/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/discovery/builtin.py:81: in get_interpreter
for interpreter, impl_must_match in propose_interpreters(spec, try_first_with, app_data, env):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app_data = AppDataDiskFolder(/build/pytest-of-nixbld/pytest-0/session-app-data0)
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
key = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
proposed_paths = set()
spec = PythonSpec(path=/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13)
try_first_with = []
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/discovery/builtin.py:112: in propose_interpreters
yield PythonInfo.from_exe(exe_raw, app_data, env=env), True
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app_data = AppDataDiskFolder(/build/pytest-of-nixbld/pytest-0/session-app-data0)
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
exe_id = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
exe_raw = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
spec = PythonSpec(path=/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13)
tested_exes = {'/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'}
try_first_with = []
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/discovery/py_info.py:455: in from_exe
proposed = from_exe(cls, app_data, exe, env=env, raise_on_error=raise_on_error, ignore_cache=ignore_cache)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
app_data = AppDataDiskFolder(/build/pytest-of-nixbld/pytest-0/session-app-data0)
cls = <class 'virtualenv.discovery.py_info.PythonInfo'>
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
exe = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
from_exe = <function from_exe at 0x7ffff5634040>
ignore_cache = False
raise_on_error = True
resolve_to_host = True
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
cls = <class 'virtualenv.discovery.py_info.PythonInfo'>
app_data = AppDataDiskFolder(/build/pytest-of-nixbld/pytest-0/session-app-data0)
exe = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
raise_on_error = True, ignore_cache = False
def from_exe(cls, app_data, exe, env=None, raise_on_error=True, ignore_cache=False): # noqa: FBT002, PLR0913
env = os.environ if env is None else env
result = _get_from_cache(cls, app_data, exe, env, ignore_cache=ignore_cache)
if isinstance(result, Exception):
if raise_on_error:
> raise result
E RuntimeError: failed to query /nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13 with code 24 err: 'Too many open files'
app_data = AppDataDiskFolder(/build/pytest-of-nixbld/pytest-0/session-app-data0)
cls = <class 'virtualenv.discovery.py_info.PythonInfo'>
env = environ({'SHELL': '/nix/store/pl0qg7n1h0zsf2g56fh13hsx3h8snrdq-bash-5.3p3/bin/bash', '_PYTHON_HOST_PLATFORM': 'linux-x..._file_limit.py::test_too_many_open_files (call)', 'VIRTUALENV_NO_PERIODIC_UPDATE': '1', 'VIRTUALENV_NO_DOWNLOAD': '1'})
exe = '/nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13'
ignore_cache = False
raise_on_error = True
result = RuntimeError("failed to query /nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-python3-3.13.9/bin/python3.13 with code 24 err: 'Too many open files'")
/nix/store/6mgn3hyd87bsl2izhp6zp6vhkv0cgw8i-python3.13-virtualenv-20.33.1/lib/python3.13/site-packages/virtualenv/discovery/cached_py_info.py:35: RuntimeError
---------------------------- Captured stdout setup -----------------------------
31283 Attempting to acquire lock 140737293824112 on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock [DEBUG _api:331]
31283 Lock 140737293824112 acquired on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock [DEBUG _api:334]
31284 Attempting to release lock 140737293824112 on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock [DEBUG _api:364]
31285 Lock 140737293824112 released on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock [DEBUG _api:367]
------------------------------ Captured log setup ------------------------------
DEBUG  filelock:_api.py:331 Attempting to acquire lock 140737293824112 on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
DEBUG  filelock:_api.py:334 Lock 140737293824112 acquired on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
DEBUG  filelock:_api.py:364 Attempting to release lock 140737293824112 on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
DEBUG  filelock:_api.py:367 Lock 140737293824112 released on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
---------------------------- Captured log teardown -----------------------------
DEBUG  filelock:_api.py:331 Attempting to acquire lock 140737289003632 on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
DEBUG  filelock:_api.py:334 Lock 140737289003632 acquired on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
DEBUG  filelock:_api.py:364 Attempting to release lock 140737289003632 on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
DEBUG  filelock:_api.py:367 Lock 140737289003632 released on /build/pytest-of-nixbld/pytest-0/session-app-data0/py_info/2/.lock
=============================== warnings summary ===============================
../../nix/store/y01qc8w1k3v7iff5phc4d231yybphr54-python3.13-pytest-8.4.2/lib/python3.13/site-packages/_pytest/config/__init__.py:1474
/nix/store/y01qc8w1k3v7iff5phc4d231yybphr54-python3.13-pytest-8.4.2/lib/python3.13/site-packages/_pytest/config/__init__.py:1474: PytestConfigWarning: Unknown config option: env
self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
FAILED tests/unit/test_file_limit.py::test_too_many_open_files - RuntimeError: failed to query /nix/store/83q9jy6qmldz45pi0qa7nab3s8drdl3q-p...
= 1 failed, 288 passed, 38 skipped, 2 deselected, 1 warning in 63.73s (0:01:03) =
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment