Closed horw closed 9 months ago
The test is failing. could you help take a look?
Locally, I encountered a different error. :smile:
test_serial_file_description_leak.py .....................................................................................................................................................................................................................................................................................................EEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEETraceback (most recent call last):
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/_pytest/pytester.py", line 1172, in runpytest_inprocess
reprec = self.inline_run(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/_pytest/pytester.py", line 1137, in inline_run
ret = main([str(x) for x in args], plugins=plugins)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/_pytest/config/__init__.py", line 169, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_callers.py", line 113, in _multicall
raise exception.with_traceback(exception.__traceback__)
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main
return wrap_session(config, _main)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/_pytest/main.py", line 306, in wrap_session
config.hook.pytest_sessionfinish(
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_manager.py", line 457, in traced_hookexec
return outcome.get_result()
^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_result.py", line 114, in get_result
raise exc.with_traceback(exc.__traceback__)
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_result.py", line 76, in from_call
result = func()
^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_manager.py", line 454, in <lambda>
lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_callers.py", line 130, in _multicall
teardown[0].send(outcome)
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/_pytest/terminal.py", line 857, in pytest_sessionfinish
outcome.get_result()
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_result.py", line 114, in get_result
raise exc.with_traceback(exc.__traceback__)
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/_pytest/cacheprovider.py", line 451, in pytest_sessionfinish
config.cache.set("cache/nodeids", sorted(self.cached_nodeids))
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/_pytest/cacheprovider.py", line 189, in set
self._ensure_supporting_files()
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/site-packages/_pytest/cacheprovider.py", line 205, in _ensure_supporting_files
readme_path.write_text(README_CONTENT, encoding="UTF-8")
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/pathlib.py", line 1078, in write_text
with self.open(mode='w', encoding=encoding, errors=errors, newline=newline) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/horw/.pyenv/versions/3.11.0/lib/python3.11/pathlib.py", line 1044, in open
return io.open(self, mode, buffering, encoding, errors, newline)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 24] Too many open files: '/tmp/pytest-of-horw/pytest-9/test_serial_file_description_leak0/.pytest_cache/README.md'
F
Just tested again, for me, it doesn't work if I start with testdir.makepyfile test. If I start directly, it will work properly.
Created new folder for "tests with extra plugins" closes #237