-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pytest fails in five units #2668
Comments
At least one of the units needs to be updated for latest + PYTHONPATH=/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib64/python3.8/site-packages:/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages
+ /usr/bin/pytest -ra -m 'not network' tests/unit tests/integration
============================= test session starts ==============================
platform linux -- Python 3.8.18, pytest-7.4.3, pluggy-1.3.0
Using --randomly-seed=3320115873
rootdir: /home/builder/rpmbuild/BUILD/virtualenv-20.24.6
configfile: pyproject.toml
plugins: time-machine-2.12.0, freezegun-0.4.2, mock-3.12.0, randomly-3.13.0, timeout-2.2.0, flaky-3.7.0
timeout: 600.0s
timeout method: signal
timeout func_only: False
collected 323 items
tests/unit/config/cli/test_parser.py ... [ 0%]
tests/unit/discovery/py_info/test_py_info_exe_based_of.py .............. [ 5%]
........... [ 8%]
tests/unit/activation/test_batch.py s [ 8%]
tests/unit/activation/test_nushell.py s [ 9%]
tests/unit/activation/test_csh.py s [ 9%]
tests/unit/activation/test_python_activator.py . [ 9%]
tests/unit/activation/test_bash.py . [ 10%]
tests/unit/activation/test_fish.py . [ 10%]
tests/unit/activation/test_batch.py s [ 10%]
tests/unit/activation/test_nushell.py s [ 11%]
tests/unit/activation/test_csh.py s [ 11%]
tests/unit/activation/test_python_activator.py . [ 11%]
tests/unit/activation/test_bash.py . [ 12%]
tests/unit/activation/test_fish.py . [ 12%]
tests/unit/config/test_ini.py . [ 12%]
tests/unit/seed/wheels/test_acquire_find_wheel.py .... [ 13%]
tests/unit/create/via_global_ref/test_build_c_ext.py .. [ 14%]
tests/unit/discovery/test_py_spec.py ................................... [ 25%]
........... [ 28%]
tests/unit/config/test_env_var.py ........ [ 31%]
tests/unit/seed/wheels/test_periodic_update.py ......................... [ 39%]
.. [ 39%]
tests/unit/activation/test_activation_support.py ............ [ 43%]
tests/unit/create/via_global_ref/builtin/pypy/test_pypy3.py ... [ 44%]
tests/unit/test_run.py ..F. [ 45%]
tests/unit/discovery/test_discovery.py ....... [ 47%]
tests/unit/create/test_interpreters.py . [ 47%]
tests/unit/test_util.py .. [ 48%]
tests/unit/seed/wheels/test_acquire.py ........ [ 51%]
tests/unit/activation/test_activator.py . [ 51%]
tests/unit/discovery/py_info/test_py_info.py ...s.....................s. [ 59%]
..................s.... [ 66%]
tests/unit/create/test_creator.py ...................................... [ 78%]
.s......s. [ 81%]
tests/unit/seed/embed/test_base_embed.py ..... [ 83%]
tests/unit/create/via_global_ref/builtin/cpython/test_cpython3_win.py .. [ 83%]
..... [ 85%]
tests/unit/seed/embed/test_bootstrap_link_via_app_data.py ..... [ 86%]
tests/unit/discovery/windows/test_windows_pep514.py ss [ 87%]
tests/unit/discovery/windows/test_windows.py ssssssss [ 90%]
tests/unit/config/test___main__.py FF.FF. [ 91%]
tests/unit/seed/wheels/test_wheels_util.py .... [ 93%]
tests/unit/seed/wheels/test_bundle.py ..... [ 94%]
tests/unit/create/via_global_ref/test_api.py . [ 95%]
tests/unit/activation/test_powershell.py ss [ 95%]
tests/unit/create/test_interpreters.py . [ 95%]
tests/unit/seed/embed/test_pip_invoke.py .... [ 97%]
tests/unit/seed/embed/test_bootstrap_link_via_app_data.py ..... [ 98%]
tests/integration/test_zipapp.py sss [ 99%]
tests/integration/test_run_int.py s [100%]
=================================== FAILURES ===================================
__________________________________ test_help ___________________________________
capsys = <_pytest.capture.CaptureFixture object at 0x7f01944658e0>
def test_help(capsys):
with pytest.raises(SystemExit) as context:
cli_run(args=["-h", "-vvv"])
assert context.value.code == 0
out, err = capsys.readouterr()
> assert not err
E AssertionError: assert not 'WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section\n'
capsys = <_pytest.capture.CaptureFixture object at 0x7f01944658e0>
context = <ExceptionInfo SystemExit(0) tblen=11>
err = 'WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section\n'
out = '19952 setup logging to NOTSET [DEBUG report:37]\n19953 find interpreter for spec PythonSpec(path=/usr/bin/python3) [I...p/pytest-of-builder/pytest-0/folder0/virtualenv-test-suite.ini missing (changed via env var VIRTUALENV_CONFIG_FILE)\n'
tests/unit/test_run.py:17: AssertionError
---------------------------- Captured stdout setup -----------------------------
19950 Attempting to acquire lock 139644759371104 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:254]
19950 Lock 139644759371104 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:257]
19950 Attempting to release lock 139644759371104 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:286]
19950 Lock 139644759371104 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:289]
------------------------------ Captured log setup ------------------------------
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644759371104 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:257 Lock 139644759371104 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644759371104 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:289 Lock 139644759371104 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
--------------------------- Captured stderr teardown ---------------------------
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.8/logging/__init__.py", line 1088, in emit
stream.write(msg + self.terminator)
ValueError: I/O operation on closed file.
Call stack:
File "/usr/bin/pytest", line 8, in <module>
sys.exit(console_main())
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 192, in console_main
code = main()
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 169, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main
return wrap_session(config, _main)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 271, in wrap_session
session.exitstatus = doit(config, session) or 0
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 325, in _main
config.hook.pytest_runtestloop(session=session)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 350, in pytest_runtestloop
item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 89, in pytest_runtest_protocol
self.runner.pytest_runtest_protocol(item, nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol
runtestprotocol(item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 134, in runtestprotocol
reports.append(call_and_report(item, "teardown", log, nextitem=nextitem))
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 133, in call_and_report
call = runner.call_runtest_hook(item, when, **kwds)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 261, in call_runtest_hook
return CallInfo.from_call(
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 262, in <lambda>
lambda: ihook(item=item, **kwds), when=when, reraise=reraise
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 182, in pytest_runtest_teardown
item.session._setupstate.teardown_exact(nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 526, in teardown_exact
fin()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 701, in <lambda>
subrequest.node.addfinalizer(lambda: fixturedef.finish(request=subrequest))
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 1024, in finish
func()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 911, in _teardown_yield_fixture
next(it)
File "/home/builder/rpmbuild/BUILD/virtualenv-20.24.6/tests/conftest.py", line 123, in _ensure_py_info_cache_empty
PythonInfo.clear_cache(session_app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/py_info.py", line 303, in clear_cache
clear(app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/cached_py_info.py", line 169, in clear
app_data.py_info_clear()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/app_data/via_disk_folder.py", line 88, in py_info_clear
with py_info_folder:
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 103, in __enter__
self._lock_file(self._lock)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 118, in _lock_file
lock.acquire(0.0001)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 30, in acquire
super().acquire(timeout, poll_interval)
File "/usr/lib/python3.8/site-packages/filelock/_api.py", line 254, in acquire
_LOGGER.debug("Attempting to acquire lock %s on %s", lock_id, lock_filename)
Message: 'Attempting to acquire lock %s on %s'
Arguments: (139644771709904, '/tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.8/logging/__init__.py", line 1088, in emit
stream.write(msg + self.terminator)
ValueError: I/O operation on closed file.
Call stack:
File "/usr/bin/pytest", line 8, in <module>
sys.exit(console_main())
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 192, in console_main
code = main()
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 169, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main
return wrap_session(config, _main)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 271, in wrap_session
session.exitstatus = doit(config, session) or 0
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 325, in _main
config.hook.pytest_runtestloop(session=session)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 350, in pytest_runtestloop
item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 89, in pytest_runtest_protocol
self.runner.pytest_runtest_protocol(item, nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol
runtestprotocol(item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 134, in runtestprotocol
reports.append(call_and_report(item, "teardown", log, nextitem=nextitem))
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 133, in call_and_report
call = runner.call_runtest_hook(item, when, **kwds)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 261, in call_runtest_hook
return CallInfo.from_call(
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 262, in <lambda>
lambda: ihook(item=item, **kwds), when=when, reraise=reraise
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 182, in pytest_runtest_teardown
item.session._setupstate.teardown_exact(nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 526, in teardown_exact
fin()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 701, in <lambda>
subrequest.node.addfinalizer(lambda: fixturedef.finish(request=subrequest))
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 1024, in finish
func()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 911, in _teardown_yield_fixture
next(it)
File "/home/builder/rpmbuild/BUILD/virtualenv-20.24.6/tests/conftest.py", line 123, in _ensure_py_info_cache_empty
PythonInfo.clear_cache(session_app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/py_info.py", line 303, in clear_cache
clear(app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/cached_py_info.py", line 169, in clear
app_data.py_info_clear()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/app_data/via_disk_folder.py", line 88, in py_info_clear
with py_info_folder:
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 103, in __enter__
self._lock_file(self._lock)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 118, in _lock_file
lock.acquire(0.0001)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 30, in acquire
super().acquire(timeout, poll_interval)
File "/usr/lib/python3.8/site-packages/filelock/_api.py", line 257, in acquire
_LOGGER.debug("Lock %s acquired on %s", lock_id, lock_filename)
Message: 'Lock %s acquired on %s'
Arguments: (139644771709904, '/tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.8/logging/__init__.py", line 1088, in emit
stream.write(msg + self.terminator)
ValueError: I/O operation on closed file.
Call stack:
File "/usr/bin/pytest", line 8, in <module>
sys.exit(console_main())
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 192, in console_main
code = main()
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 169, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main
return wrap_session(config, _main)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 271, in wrap_session
session.exitstatus = doit(config, session) or 0
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 325, in _main
config.hook.pytest_runtestloop(session=session)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 350, in pytest_runtestloop
item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 89, in pytest_runtest_protocol
self.runner.pytest_runtest_protocol(item, nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol
runtestprotocol(item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 134, in runtestprotocol
reports.append(call_and_report(item, "teardown", log, nextitem=nextitem))
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 133, in call_and_report
call = runner.call_runtest_hook(item, when, **kwds)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 261, in call_runtest_hook
return CallInfo.from_call(
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 262, in <lambda>
lambda: ihook(item=item, **kwds), when=when, reraise=reraise
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 182, in pytest_runtest_teardown
item.session._setupstate.teardown_exact(nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 526, in teardown_exact
fin()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 701, in <lambda>
subrequest.node.addfinalizer(lambda: fixturedef.finish(request=subrequest))
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 1024, in finish
func()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 911, in _teardown_yield_fixture
next(it)
File "/home/builder/rpmbuild/BUILD/virtualenv-20.24.6/tests/conftest.py", line 123, in _ensure_py_info_cache_empty
PythonInfo.clear_cache(session_app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/py_info.py", line 303, in clear_cache
clear(app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/cached_py_info.py", line 169, in clear
app_data.py_info_clear()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/app_data/via_disk_folder.py", line 91, in py_info_clear
with py_info_folder.lock_for_key(filename.stem):
File "/usr/lib64/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 135, in lock_for_key
self._lock_file(lock, no_block)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 118, in _lock_file
lock.acquire(0.0001)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 30, in acquire
super().acquire(timeout, poll_interval)
File "/usr/lib/python3.8/site-packages/filelock/_api.py", line 254, in acquire
_LOGGER.debug("Attempting to acquire lock %s on %s", lock_id, lock_filename)
Message: 'Attempting to acquire lock %s on %s'
Arguments: (139644759390672, '/tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.8/logging/__init__.py", line 1088, in emit
stream.write(msg + self.terminator)
ValueError: I/O operation on closed file.
Call stack:
File "/usr/bin/pytest", line 8, in <module>
sys.exit(console_main())
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 192, in console_main
code = main()
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 169, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main
return wrap_session(config, _main)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 271, in wrap_session
session.exitstatus = doit(config, session) or 0
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 325, in _main
config.hook.pytest_runtestloop(session=session)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 350, in pytest_runtestloop
item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 89, in pytest_runtest_protocol
self.runner.pytest_runtest_protocol(item, nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol
runtestprotocol(item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 134, in runtestprotocol
reports.append(call_and_report(item, "teardown", log, nextitem=nextitem))
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 133, in call_and_report
call = runner.call_runtest_hook(item, when, **kwds)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 261, in call_runtest_hook
return CallInfo.from_call(
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 262, in <lambda>
lambda: ihook(item=item, **kwds), when=when, reraise=reraise
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 182, in pytest_runtest_teardown
item.session._setupstate.teardown_exact(nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 526, in teardown_exact
fin()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 701, in <lambda>
subrequest.node.addfinalizer(lambda: fixturedef.finish(request=subrequest))
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 1024, in finish
func()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 911, in _teardown_yield_fixture
next(it)
File "/home/builder/rpmbuild/BUILD/virtualenv-20.24.6/tests/conftest.py", line 123, in _ensure_py_info_cache_empty
PythonInfo.clear_cache(session_app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/py_info.py", line 303, in clear_cache
clear(app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/cached_py_info.py", line 169, in clear
app_data.py_info_clear()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/app_data/via_disk_folder.py", line 91, in py_info_clear
with py_info_folder.lock_for_key(filename.stem):
File "/usr/lib64/python3.8/contextlib.py", line 113, in __enter__
return next(self.gen)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 135, in lock_for_key
self._lock_file(lock, no_block)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 118, in _lock_file
lock.acquire(0.0001)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 30, in acquire
super().acquire(timeout, poll_interval)
File "/usr/lib/python3.8/site-packages/filelock/_api.py", line 257, in acquire
_LOGGER.debug("Lock %s acquired on %s", lock_id, lock_filename)
Message: 'Lock %s acquired on %s'
Arguments: (139644759390672, '/tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.8/logging/__init__.py", line 1088, in emit
stream.write(msg + self.terminator)
ValueError: I/O operation on closed file.
Call stack:
File "/usr/bin/pytest", line 8, in <module>
sys.exit(console_main())
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 192, in console_main
code = main()
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 169, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main
return wrap_session(config, _main)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 271, in wrap_session
session.exitstatus = doit(config, session) or 0
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 325, in _main
config.hook.pytest_runtestloop(session=session)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 350, in pytest_runtestloop
item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 89, in pytest_runtest_protocol
self.runner.pytest_runtest_protocol(item, nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol
runtestprotocol(item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 134, in runtestprotocol
reports.append(call_and_report(item, "teardown", log, nextitem=nextitem))
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 133, in call_and_report
call = runner.call_runtest_hook(item, when, **kwds)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 261, in call_runtest_hook
return CallInfo.from_call(
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 262, in <lambda>
lambda: ihook(item=item, **kwds), when=when, reraise=reraise
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 182, in pytest_runtest_teardown
item.session._setupstate.teardown_exact(nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 526, in teardown_exact
fin()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 701, in <lambda>
subrequest.node.addfinalizer(lambda: fixturedef.finish(request=subrequest))
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 1024, in finish
func()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 911, in _teardown_yield_fixture
next(it)
File "/home/builder/rpmbuild/BUILD/virtualenv-20.24.6/tests/conftest.py", line 123, in _ensure_py_info_cache_empty
PythonInfo.clear_cache(session_app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/py_info.py", line 303, in clear_cache
clear(app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/cached_py_info.py", line 169, in clear
app_data.py_info_clear()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/app_data/via_disk_folder.py", line 93, in py_info_clear
filename.unlink()
File "/usr/lib64/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 138, in lock_for_key
self._release(lock)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 128, in _release
lock.release()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 38, in release
super().release(force=force)
File "/usr/lib/python3.8/site-packages/filelock/_api.py", line 286, in release
_LOGGER.debug("Attempting to release lock %s on %s", lock_id, lock_filename)
Message: 'Attempting to release lock %s on %s'
Arguments: (139644759390672, '/tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.8/logging/__init__.py", line 1088, in emit
stream.write(msg + self.terminator)
ValueError: I/O operation on closed file.
Call stack:
File "/usr/bin/pytest", line 8, in <module>
sys.exit(console_main())
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 192, in console_main
code = main()
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 169, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main
return wrap_session(config, _main)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 271, in wrap_session
session.exitstatus = doit(config, session) or 0
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 325, in _main
config.hook.pytest_runtestloop(session=session)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 350, in pytest_runtestloop
item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 89, in pytest_runtest_protocol
self.runner.pytest_runtest_protocol(item, nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol
runtestprotocol(item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 134, in runtestprotocol
reports.append(call_and_report(item, "teardown", log, nextitem=nextitem))
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 133, in call_and_report
call = runner.call_runtest_hook(item, when, **kwds)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 261, in call_runtest_hook
return CallInfo.from_call(
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 262, in <lambda>
lambda: ihook(item=item, **kwds), when=when, reraise=reraise
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 182, in pytest_runtest_teardown
item.session._setupstate.teardown_exact(nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 526, in teardown_exact
fin()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 701, in <lambda>
subrequest.node.addfinalizer(lambda: fixturedef.finish(request=subrequest))
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 1024, in finish
func()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 911, in _teardown_yield_fixture
next(it)
File "/home/builder/rpmbuild/BUILD/virtualenv-20.24.6/tests/conftest.py", line 123, in _ensure_py_info_cache_empty
PythonInfo.clear_cache(session_app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/py_info.py", line 303, in clear_cache
clear(app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/cached_py_info.py", line 169, in clear
app_data.py_info_clear()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/app_data/via_disk_folder.py", line 93, in py_info_clear
filename.unlink()
File "/usr/lib64/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 138, in lock_for_key
self._release(lock)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 128, in _release
lock.release()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 38, in release
super().release(force=force)
File "/usr/lib/python3.8/site-packages/filelock/_api.py", line 289, in release
_LOGGER.debug("Lock %s released on %s", lock_id, lock_filename)
Message: 'Lock %s released on %s'
Arguments: (139644759390672, '/tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.8/logging/__init__.py", line 1088, in emit
stream.write(msg + self.terminator)
ValueError: I/O operation on closed file.
Call stack:
File "/usr/bin/pytest", line 8, in <module>
sys.exit(console_main())
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 192, in console_main
code = main()
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 169, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main
return wrap_session(config, _main)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 271, in wrap_session
session.exitstatus = doit(config, session) or 0
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 325, in _main
config.hook.pytest_runtestloop(session=session)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 350, in pytest_runtestloop
item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 89, in pytest_runtest_protocol
self.runner.pytest_runtest_protocol(item, nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol
runtestprotocol(item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 134, in runtestprotocol
reports.append(call_and_report(item, "teardown", log, nextitem=nextitem))
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 133, in call_and_report
call = runner.call_runtest_hook(item, when, **kwds)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 261, in call_runtest_hook
return CallInfo.from_call(
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 262, in <lambda>
lambda: ihook(item=item, **kwds), when=when, reraise=reraise
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 182, in pytest_runtest_teardown
item.session._setupstate.teardown_exact(nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 526, in teardown_exact
fin()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 701, in <lambda>
subrequest.node.addfinalizer(lambda: fixturedef.finish(request=subrequest))
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 1024, in finish
func()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 911, in _teardown_yield_fixture
next(it)
File "/home/builder/rpmbuild/BUILD/virtualenv-20.24.6/tests/conftest.py", line 123, in _ensure_py_info_cache_empty
PythonInfo.clear_cache(session_app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/py_info.py", line 303, in clear_cache
clear(app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/cached_py_info.py", line 169, in clear
app_data.py_info_clear()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/app_data/via_disk_folder.py", line 93, in py_info_clear
filename.unlink()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 106, in __exit__
self._release(self._lock)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 128, in _release
lock.release()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 38, in release
super().release(force=force)
File "/usr/lib/python3.8/site-packages/filelock/_api.py", line 286, in release
_LOGGER.debug("Attempting to release lock %s on %s", lock_id, lock_filename)
Message: 'Attempting to release lock %s on %s'
Arguments: (139644771709904, '/tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock')
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib64/python3.8/logging/__init__.py", line 1088, in emit
stream.write(msg + self.terminator)
ValueError: I/O operation on closed file.
Call stack:
File "/usr/bin/pytest", line 8, in <module>
sys.exit(console_main())
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 192, in console_main
code = main()
File "/usr/lib/python3.8/site-packages/_pytest/config/__init__.py", line 169, in main
ret: Union[ExitCode, int] = config.hook.pytest_cmdline_main(
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 318, in pytest_cmdline_main
return wrap_session(config, _main)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 271, in wrap_session
session.exitstatus = doit(config, session) or 0
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 325, in _main
config.hook.pytest_runtestloop(session=session)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/main.py", line 350, in pytest_runtestloop
item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 89, in pytest_runtest_protocol
self.runner.pytest_runtest_protocol(item, nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 114, in pytest_runtest_protocol
runtestprotocol(item, nextitem=nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 134, in runtestprotocol
reports.append(call_and_report(item, "teardown", log, nextitem=nextitem))
File "/usr/lib/python3.8/site-packages/flaky/flaky_pytest_plugin.py", line 133, in call_and_report
call = runner.call_runtest_hook(item, when, **kwds)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 261, in call_runtest_hook
return CallInfo.from_call(
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 341, in from_call
result: Optional[TResult] = func()
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 262, in <lambda>
lambda: ihook(item=item, **kwds), when=when, reraise=reraise
File "/usr/lib/python3.8/site-packages/pluggy/_hooks.py", line 493, in __call__
return self._hookexec(self.name, self._hookimpls, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_manager.py", line 115, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/lib/python3.8/site-packages/pluggy/_callers.py", line 77, in _multicall
res = hook_impl.function(*args)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 182, in pytest_runtest_teardown
item.session._setupstate.teardown_exact(nextitem)
File "/usr/lib/python3.8/site-packages/_pytest/runner.py", line 526, in teardown_exact
fin()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 701, in <lambda>
subrequest.node.addfinalizer(lambda: fixturedef.finish(request=subrequest))
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 1024, in finish
func()
File "/usr/lib/python3.8/site-packages/_pytest/fixtures.py", line 911, in _teardown_yield_fixture
next(it)
File "/home/builder/rpmbuild/BUILD/virtualenv-20.24.6/tests/conftest.py", line 123, in _ensure_py_info_cache_empty
PythonInfo.clear_cache(session_app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/py_info.py", line 303, in clear_cache
clear(app_data)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/discovery/cached_py_info.py", line 169, in clear
app_data.py_info_clear()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/app_data/via_disk_folder.py", line 93, in py_info_clear
filename.unlink()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 106, in __exit__
self._release(self._lock)
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 128, in _release
lock.release()
File "/home/builder/rpmbuild/BUILDROOT/python-virtualenv-20.24.6-2.fc35.x86_64/usr/lib/python3.8/site-packages/virtualenv/util/lock.py", line 38, in release
super().release(force=force)
File "/usr/lib/python3.8/site-packages/filelock/_api.py", line 289, in release
_LOGGER.debug("Lock %s released on %s", lock_id, lock_filename)
Message: 'Lock %s released on %s'
Arguments: (139644771709904, '/tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock')
---------------------------- Captured log teardown -----------------------------
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644771709904 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:257 Lock 139644771709904 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644759390672 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:257 Lock 139644759390672 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644759390672 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:289 Lock 139644759390672 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644771709904 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:289 Lock 139644771709904 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
___________________________ test_session_report_full ___________________________
tmp_path = PosixPath('/tmp/pytest-of-builder/pytest-0/test_session_report_full0')
capsys = <_pytest.capture.CaptureFixture object at 0x7f0194b71040>
@pytest.mark.usefixtures("session_app_data")
def test_session_report_full(tmp_path: Path, capsys: pytest.CaptureFixture[str]) -> None:
run_with_catch([str(tmp_path), "--setuptools", "bundle", "--wheel", "bundle"])
out, err = capsys.readouterr()
> assert not err
E AssertionError: assert not 'WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section\n'
capsys = <_pytest.capture.CaptureFixture object at 0x7f0194b71040>
err = 'WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section\n'
out = 'created virtual environment CPython3.8.18.final.0-64 in 478ms\n creator CPython3Posix(dest=/tmp/pytest-of-builder/p....41.2\n activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator\n'
tmp_path = PosixPath('/tmp/pytest-of-builder/pytest-0/test_session_report_full0')
tests/unit/config/test___main__.py:69: AssertionError
---------------------------- Captured stdout setup -----------------------------
55448 Attempting to acquire lock 139644768621472 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:254]
55449 Lock 139644768621472 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:257]
55449 Attempting to release lock 139644768621472 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:286]
55449 Lock 139644768621472 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:289]
------------------------------ Captured log setup ------------------------------
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644768621472 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:257 Lock 139644768621472 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644768621472 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:289 Lock 139644768621472 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
---------------------------- Captured log teardown -----------------------------
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644766938592 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:257 Lock 139644766938592 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644766940848 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:257 Lock 139644766940848 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644766940848 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:289 Lock 139644766940848 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644766938592 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:289 Lock 139644766938592 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
____________________________ test_fail_no_traceback ____________________________
raise_on_session_done = <function raise_on_session_done.<locals>._func at 0x7f0194969ca0>
tmp_path = PosixPath('/tmp/pytest-of-builder/pytest-0/test_fail_no_traceback0')
capsys = <_pytest.capture.CaptureFixture object at 0x7f0194d04c10>
def test_fail_no_traceback(raise_on_session_done, tmp_path, capsys):
raise_on_session_done(ProcessCallFailedError(code=2, out="out\n", err="err\n", cmd=["something"]))
with pytest.raises(SystemExit) as context:
run_with_catch([str(tmp_path)])
assert context.value.code == 2
out, err = capsys.readouterr()
assert out == f"subprocess call failed for [{'something'!r}] with code 2\nout\nSystemExit: 2\n"
> assert err == "err\n"
E AssertionError: assert 'WARNING setu...ection\nerr\n' == 'err\n'
E + WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section
E err
capsys = <_pytest.capture.CaptureFixture object at 0x7f0194d04c10>
context = <ExceptionInfo SystemExit(2) tblen=2>
err = 'WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section\nerr\n'
out = "subprocess call failed for ['something'] with code 2\nout\nSystemExit: 2\n"
raise_on_session_done = <function raise_on_session_done.<locals>._func at 0x7f0194969ca0>
tmp_path = PosixPath('/tmp/pytest-of-builder/pytest-0/test_fail_no_traceback0')
tests/unit/config/test___main__.py:52: AssertionError
---------------------------- Captured stdout setup -----------------------------
55957 Attempting to acquire lock 139644766804144 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:254]
55957 Lock 139644766804144 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:257]
55957 Attempting to release lock 139644766804144 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:286]
55958 Lock 139644766804144 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:289]
------------------------------ Captured log setup ------------------------------
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644766804144 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:257 Lock 139644766804144 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644766804144 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:289 Lock 139644766804144 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
---------------------------- Captured log teardown -----------------------------
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644766721312 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:257 Lock 139644766721312 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644767006832 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:257 Lock 139644767006832 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644767006832 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:289 Lock 139644767006832 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644766721312 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:289 Lock 139644766721312 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
___________________________ test_fail_with_traceback ___________________________
raise_on_session_done = <function raise_on_session_done.<locals>._func at 0x7f0194969b80>
tmp_path = PosixPath('/tmp/pytest-of-builder/pytest-0/test_fail_with_traceback0')
capsys = <_pytest.capture.CaptureFixture object at 0x7f0194b855b0>
def test_fail_with_traceback(raise_on_session_done, tmp_path, capsys):
raise_on_session_done(TypeError("something bad"))
with pytest.raises(TypeError, match="something bad"):
run_with_catch([str(tmp_path), "--with-traceback"])
out, err = capsys.readouterr()
assert not out
> assert not err
E AssertionError: assert not 'WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section\n'
capsys = <_pytest.capture.CaptureFixture object at 0x7f0194b855b0>
err = 'WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section\n'
out = ''
raise_on_session_done = <function raise_on_session_done.<locals>._func at 0x7f0194969b80>
tmp_path = PosixPath('/tmp/pytest-of-builder/pytest-0/test_fail_with_traceback0')
tests/unit/config/test___main__.py:62: AssertionError
---------------------------- Captured stdout setup -----------------------------
56609 Attempting to acquire lock 139644759712576 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:254]
56609 Lock 139644759712576 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:257]
56609 Attempting to release lock 139644759712576 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:286]
56610 Lock 139644759712576 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:289]
------------------------------ Captured log setup ------------------------------
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644759712576 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:257 Lock 139644759712576 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644759712576 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:289 Lock 139644759712576 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
---------------------------- Captured log teardown -----------------------------
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644759186592 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:257 Lock 139644759186592 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644768828384 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:257 Lock 139644768828384 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644768828384 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:289 Lock 139644768828384 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644759186592 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:289 Lock 139644759186592 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
_________________________ test_session_report_minimal __________________________
tmp_path = PosixPath('/tmp/pytest-of-builder/pytest-0/test_session_report_minimal0')
capsys = <_pytest.capture.CaptureFixture object at 0x7f0194d4d370>
@pytest.mark.usefixtures("session_app_data")
def test_session_report_minimal(tmp_path, capsys):
run_with_catch([str(tmp_path), "--activators", "", "--without-pip"])
out, err = capsys.readouterr()
> assert not err
E AssertionError: assert not 'WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section\n'
capsys = <_pytest.capture.CaptureFixture object at 0x7f0194d4d370>
err = 'WARNING setuptools_scm._integration.setuptools pyproject.toml does not contain a tool.setuptools_scm section\n'
out = 'created virtual environment CPython3.8.18.final.0-64 in 303ms\n creator CPython3Posix(dest=/tmp/pytest-of-builder/pytest-0/test_session_report_minimal0, clear=False, no_vcs_ignore=False, global=False)\n'
tmp_path = PosixPath('/tmp/pytest-of-builder/pytest-0/test_session_report_minimal0')
tests/unit/config/test___main__.py:91: AssertionError
---------------------------- Captured stdout setup -----------------------------
56939 Attempting to acquire lock 139644768825456 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:254]
56939 Lock 139644768825456 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:257]
56939 Attempting to release lock 139644768825456 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:286]
56939 Lock 139644768825456 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock [DEBUG _api:289]
------------------------------ Captured log setup ------------------------------
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644768825456 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:257 Lock 139644768825456 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644768825456 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:289 Lock 139644768825456 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
---------------------------- Captured log teardown -----------------------------
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644766968800 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:257 Lock 139644766968800 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:254 Attempting to acquire lock 139644759186064 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:257 Lock 139644759186064 acquired on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644759186064 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:289 Lock 139644759186064 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/31f2aee4e71d21fbe5cf8b01ff0e069b9275f58929596ceb00d14d90e3e16cd6.lock
DEBUG filelock:_api.py:286 Attempting to release lock 139644766968800 on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
DEBUG filelock:_api.py:289 Lock 139644766968800 released on /tmp/pytest-of-builder/pytest-0/session-app-data0/py_info/1/.lock
=============================== warnings summary ===============================
../../../../../usr/lib/python3.8/site-packages/_pytest/config/__init__.py:1373
/usr/lib/python3.8/site-packages/_pytest/config/__init__.py:1373: PytestConfigWarning: Unknown config option: env
self._warn_or_fail_if_strict(f"Unknown config option: {key}\n")
../../../../../usr/lib/python3.8/site-packages/pytest_freezegun.py:17: 646 warnings
/usr/lib/python3.8/site-packages/pytest_freezegun.py:17: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
if LooseVersion(pytest.__version__) < LooseVersion('3.6.0'):
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
SKIPPED [2] tests/unit/activation/conftest.py:248: BatchActivator not supported
SKIPPED [1] tests/unit/activation/conftest.py:251: Nushell(
version=TypeError('expected str, bytes or os.PathLike object, not NoneType'),
creator=CPython3Posix(dest=/tmp/pytest-of-builder/pytest-0/activation-tester-env0/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.8.18.final.0-64, exe=/usr/bin/python3, platform=linux, version='3.8.18 (default, Sep 30 2023, 07:11:37) \n[GCC 13.2.1 20230918 (Red Hat 13.2.1-3)]', encoding_fs_io=utf-8-utf-8)) is not available due expected str, bytes or os.PathLike object, not NoneType
SKIPPED [1] tests/unit/activation/conftest.py:251: Csh(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/tmp/pytest-of-builder/pytest-0/activation-tester-env0/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.8.18.final.0-64, exe=/usr/bin/python3, platform=linux, version='3.8.18 (default, Sep 30 2023, 07:11:37) \n[GCC 13.2.1 20230918 (Red Hat 13.2.1-3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'csh'
SKIPPED [1] tests/unit/activation/conftest.py:251: Nushell(
version=TypeError('expected str, bytes or os.PathLike object, not NoneType'),
creator=CPython3Posix(dest=/tmp/pytest-of-builder/pytest-0/activation-tester-env1/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.8.18.final.0-64, exe=/usr/bin/python3, platform=linux, version='3.8.18 (default, Sep 30 2023, 07:11:37) \n[GCC 13.2.1 20230918 (Red Hat 13.2.1-3)]', encoding_fs_io=utf-8-utf-8)) is not available due expected str, bytes or os.PathLike object, not NoneType
SKIPPED [1] tests/unit/activation/conftest.py:251: Csh(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/tmp/pytest-of-builder/pytest-0/activation-tester-env1/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.8.18.final.0-64, exe=/usr/bin/python3, platform=linux, version='3.8.18 (default, Sep 30 2023, 07:11:37) \n[GCC 13.2.1 20230918 (Red Hat 13.2.1-3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'csh'
SKIPPED [1] tests/unit/discovery/py_info/test_py_info.py:416: 3.10 specific
SKIPPED [1] tests/unit/discovery/py_info/test_py_info.py:393: POSIX 3.11+ specific
SKIPPED [1] tests/unit/discovery/py_info/test_py_info.py:318: test not valid if run under system
SKIPPED [1] tests/unit/create/test_creator.py:347: OS does not have an altsep
SKIPPED [1] tests/unit/create/test_creator.py:276: venv without clear might fail
SKIPPED [1] tests/unit/discovery/windows/test_windows_pep514.py:30: no Windows registry
SKIPPED [1] tests/unit/discovery/windows/test_windows_pep514.py:9: no Windows registry
SKIPPED [8] tests/unit/discovery/windows/test_windows.py:10: no Windows registry
SKIPPED [1] tests/unit/activation/conftest.py:251: PowerShell(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/tmp/pytest-of-builder/pytest-0/activation-tester-env2/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.8.18.final.0-64, exe=/usr/bin/python3, platform=linux, version='3.8.18 (default, Sep 30 2023, 07:11:37) \n[GCC 13.2.1 20230918 (Red Hat 13.2.1-3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'pwsh'
SKIPPED [1] tests/unit/activation/conftest.py:251: PowerShell(
version=FileNotFoundError(2, 'No such file or directory'),
creator=CPython3Posix(dest=/tmp/pytest-of-builder/pytest-0/activation-tester-env3/e-$ èрт🚒♞中片-j, clear=False, no_vcs_ignore=False, global=False),
interpreter=PythonInfo(spec=CPython3.8.18.final.0-64, exe=/usr/bin/python3, platform=linux, version='3.8.18 (default, Sep 30 2023, 07:11:37) \n[GCC 13.2.1 20230918 (Red Hat 13.2.1-3)]', encoding_fs_io=utf-8-utf-8)) is not available due [Errno 2] No such file or directory: 'pwsh'
SKIPPED [1] tests/integration/test_zipapp.py: need --int option to run
SKIPPED [2] tests/integration/test_zipapp.py:93: need --int option to run
SKIPPED [1] tests/integration/test_run_int.py:15: need --int option to run
FAILED tests/unit/test_run.py::test_help - AssertionError: assert not 'WARNIN...
FAILED tests/unit/config/test___main__.py::test_session_report_full - Asserti...
FAILED tests/unit/config/test___main__.py::test_fail_no_traceback - Assertion...
FAILED tests/unit/config/test___main__.py::test_fail_with_traceback - Asserti...
FAILED tests/unit/config/test___main__.py::test_session_report_minimal - Asse...
====== 5 failed, 291 passed, 27 skipped, 647 warnings in 95.01s (0:01:35) ====== |
PR welcome. |
Sorry I'm only messenger .. |
But you can now become so much more... |
To be able form PR it is necessary to know about the code and intention of the developer who wrote that code. |
The developer who wrote the code might long ago moved to different projects, but the code should be self explaining so there shouldn't be any barriers for you to take a stab at it. I'll be able to provide feedback on your PR either way once it is in. |
Again: to start work on that someone needs to identify is it tested code or test suite issue. |
All these tests fail in
and in v8.0.4 it is
|
OK so it was possible to reproduce those fails (which is good 👍 ) |
Does this need a fix? Since |
I guess the question is, why does the OP have The easy fix seems to be "don't have |
But hatch-vcs has it, which is a build requirement for virtualenv. OP like many other distribution packagers run the unit tests in the same environment as they built the package. |
You're right. I used |
Issue
Looks like with 20.24.6 pytest is filing in four units
Environment
Provide at least:
pip list
of the host python wherevirtualenv
is build:<.details>
The text was updated successfully, but these errors were encountered: