fedora-python / tox-current-env

tox plugin to run tests in current Python environment
https://pypi.org/project/tox-current-env/
MIT License
23 stars 8 forks source link

tox -e py312-tox4: TypeError: 'NoneType' object is not iterable #75

Closed hroncok closed 1 week ago

hroncok commented 8 months ago
[tox-current-env (master)]$ tox -e py312-tox4
.pkg: _optional_hooks> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_sdist> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: get_requires_for_build_wheel> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: prepare_metadata_for_build_wheel> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
.pkg: build_sdist> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
py312-tox4: install_package> python -I -m pip install --force-reinstall --no-deps ~/tox-current-env/.tox/.tmp/package/3/tox-current-env-0.0.11.tar.gz
py312-tox4: commands[0]> pytest -v tests
============================= test session starts ==============================
platform linux -- Python 3.12.1, pytest-8.0.1, pluggy-1.4.0 -- ~/tox-current-env/.tox/py312-tox4/bin/python
cachedir: .tox/py312-tox4/.pytest_cache
rootdir: ~/tox-current-env
configfile: tox.ini
plugins: xdist-3.5.0
created: 8/8 workers
8 workers [187 items]

scheduling tests via LoadScheduling

tests/test_integration_tox4.py::test_native_toxenv_current_env 
tests/test_integration_tox4.py::test_print_deps[--print-deps-to-file=--py310] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--post-py37] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--pre-py310] 
tests/test_integration_tox4.py::test_print_deps[--print-deps-to=--py39] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--pre-py38] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--both-py311] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--both-py36] 
[gw0] [  0%] PASSED tests/test_integration_tox4.py::test_print_deps[--print-deps-to-file=--py310] 
tests/test_integration_tox4.py::test_print_deps[--print-deps-to-file=--py311] 
[gw4] [  1%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--post-py37] 
[gw2] [  1%] PASSED tests/test_integration_tox4.py::test_print_deps[--print-deps-to=--py39] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--post-py38] 
tests/test_integration_tox4.py::test_print_deps[--print-deps-to=--py310] 
[gw6] [  2%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--both-py311] 
[gw7] [  2%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--pre-py310] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--pre-py36] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--pre-py311] 
[gw3] [  3%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--pre-py38] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--pre-py39] 
[gw5] [  3%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--both-py36] 
[gw1] [  4%] PASSED tests/test_integration_tox4.py::test_native_toxenv_current_env 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--both-py37] 
tests/test_integration_tox4.py::test_print_deps[--print-deps-to-file=--py36] 
[gw0] [  4%] PASSED tests/test_integration_tox4.py::test_print_deps[--print-deps-to-file=--py311] 
tests/test_integration_tox4.py::test_print_deps[--print-deps-to=--py36] 
[gw4] [  5%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--post-py38] 
[gw6] [  5%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--pre-py36] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--post-py39] 
[gw7] [  6%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--pre-py311] 
[gw2] [  6%] PASSED tests/test_integration_tox4.py::test_print_deps[--print-deps-to=--py310] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--pre-py37] 
tests/test_integration_tox4.py::test_print_deps[--print-deps-to=--py311] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--post-py36] 
[gw3] [  7%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--pre-py39] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--pre-py310] 
[gw5] [  8%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--both-py37] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--both-py38] 
[gw1] [  8%] PASSED tests/test_integration_tox4.py::test_print_deps[--print-deps-to-file=--py36] 
tests/test_integration_tox4.py::test_print_deps[--print-deps-to-file=--py37] 
[gw0] [  9%] PASSED tests/test_integration_tox4.py::test_print_deps[--print-deps-to=--py36] 
tests/test_integration_tox4.py::test_print_deps[--print-deps-to=--py37] 
[gw2] [  9%] PASSED tests/test_integration_tox4.py::test_print_deps[--print-deps-to=--py311] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--pre-py36] 
[gw6] [ 10%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--pre-py37] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--pre-py38] 
[gw7] [ 10%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--post-py36] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--post-py37] 
[gw4] [ 11%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--post-py39] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--post-py310] 
[gw1] [ 11%] PASSED tests/test_integration_tox4.py::test_print_deps[--print-deps-to-file=--py37] 
[gw3] [ 12%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--pre-py310] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--pre-py311] 
tests/test_integration_tox4.py::test_print_deps[--print-deps-to-file=--py38] 
[gw5] [ 12%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--both-py38] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--both-py39] 
[gw0] [ 13%] PASSED tests/test_integration_tox4.py::test_print_deps[--print-deps-to=--py37] 
tests/test_integration_tox4.py::test_print_deps[--print-deps-to=--py38] 
[gw4] [ 13%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--post-py310] 
[gw6] [ 14%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--pre-py38] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--post-py311] 
[gw2] [ 14%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--pre-py36] 
[gw7] [ 15%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--post-py37] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--pre-py37] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--pre-py39] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--post-py38] 
[gw5] [ 16%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--both-py39] 
[gw1] [ 16%] PASSED tests/test_integration_tox4.py::test_print_deps[--print-deps-to-file=--py38] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--both-py310] 
tests/test_integration_tox4.py::test_print_deps[--print-deps-to-file=--py39] 
[gw3] [ 17%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--pre-py311] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--post-py36] 
[gw2] [ 17%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--pre-py37] 
tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py37] 
[gw7] [ 18%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--post-py38] 
tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py37] 
[gw4] [ 18%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--post-py311] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--both-py311] 
[gw0] [ 19%] PASSED tests/test_integration_tox4.py::test_print_deps[--print-deps-to=--py38] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--post-py39] 
[gw6] [ 19%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--pre-py39] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to=--py36] 
[gw5] [ 20%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--both-py310] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py37] 
[gw1] [ 20%] PASSED tests/test_integration_tox4.py::test_print_deps[--print-deps-to-file=--py39] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py37] 
[gw3] [ 21%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to-file=--post-py36] 
tests/test_integration_tox4.py::test_print_extras[--print-extras-to-file=--py36] 
[gw4] [ 21%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--both-py311] 
[gw6] [ 22%] PASSED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to=--py36] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to=--py37] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to-file=--py36] 
[gw0] [ 22%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--post-py39] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--post-py310] 
[gw2] [ 23%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py37] 
tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py38] 
[gw3] [ 24%] PASSED tests/test_integration_tox4.py::test_print_extras[--print-extras-to-file=--py36] 
tests/test_integration_tox4.py::test_print_extras[--print-extras-to-file=--py37] 
[gw1] [ 24%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py37] 
[gw5] [ 25%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py37] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py38] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py38] 
[gw7] [ 25%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py37] 
tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py38] 
[gw0] [ 26%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--post-py310] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--post-py311] 
[gw4] [ 26%] PASSED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to-file=--py36] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to-file=--py37] 
[gw6] [ 27%] PASSED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to=--py37] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to=--py38] 
[gw3] [ 27%] PASSED tests/test_integration_tox4.py::test_print_extras[--print-extras-to-file=--py37] 
tests/test_integration_tox4.py::test_print_extras[--print-extras-to-file=--py38] 
[gw2] [ 28%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py38] 
tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py39] 
[gw1] [ 28%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py38] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py39] 
[gw7] [ 29%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py38] 
tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py39] 
[gw5] [ 29%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py38] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py39] 
[gw0] [ 30%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--post-py311] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--both-py36] 
[gw4] [ 31%] PASSED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to-file=--py37] 
[gw6] [ 31%] PASSED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to=--py38] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to-file=--py38] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to=--py39] 
[gw3] [ 32%] PASSED tests/test_integration_tox4.py::test_print_extras[--print-extras-to-file=--py38] 
tests/test_integration_tox4.py::test_print_extras[--print-extras-to-file=--py39] 
[gw2] [ 32%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py39] 
tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py310] 
[gw7] [ 33%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py39] 
tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py310] 
[gw5] [ 33%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py39] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py310] 
[gw4] [ 34%] PASSED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to-file=--py38] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to-file=--py39] 
[gw6] [ 34%] PASSED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to=--py39] 
[gw0] [ 35%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--both-py36] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--both-py37] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to=--py310] 
[gw1] [ 35%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py39] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py310] 
[gw3] [ 36%] PASSED tests/test_integration_tox4.py::test_print_extras[--print-extras-to-file=--py39] 
tests/test_integration_tox4.py::test_print_extras[--print-extras-to-file=--py310] 
[gw2] [ 36%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py310] 
tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py311] 
[gw4] [ 37%] PASSED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to-file=--py39] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to-file=--py310] 
[gw0] [ 37%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--both-py37] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--both-py38] 
[gw5] [ 38%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py310] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py311] 
[gw7] [ 39%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py310] 
tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py311] 
[gw6] [ 39%] PASSED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to=--py310] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to=--py311] 
[gw1] [ 40%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py310] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py311] 
[gw3] [ 40%] PASSED tests/test_integration_tox4.py::test_print_extras[--print-extras-to-file=--py310] 
tests/test_integration_tox4.py::test_print_extras[--print-extras-to-file=--py311] 
[gw4] [ 41%] PASSED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to-file=--py310] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to-file=--py311] 
[gw0] [ 41%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--both-py38] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--both-py39] 
[gw2] [ 42%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py311] 
tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py36] 
[gw6] [ 42%] PASSED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to=--py311] 
tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py36] 
[gw5] [ 43%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py311] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py36] 
[gw3] [ 43%] PASSED tests/test_integration_tox4.py::test_print_extras[--print-extras-to-file=--py311] 
tests/test_integration_tox4.py::test_print_extras[--print-extras-to=--py36] 
[gw7] [ 44%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py311] 
tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py36] 
[gw1] [ 44%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py311] 
tests/test_integration_tox4.py::test_print_extras[--print-extras-to=--py310] 
[gw4] [ 45%] PASSED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion[--print-deps-to-file=--py311] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--pre-py38] 
[gw0] [ 45%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--both-py39] 
tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--both-py310] 
[gw2] [ 46%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py36] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py36] 
[gw3] [ 47%] PASSED tests/test_integration_tox4.py::test_print_extras[--print-extras-to=--py36] 
tests/test_integration_tox4.py::test_print_extras[--print-extras-to=--py37] 
[gw6] [ 47%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py36] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py310] 
[gw5] [ 48%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py36] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--both-py38] 
[gw7] [ 48%] FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py36] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--both-py311] 
[gw1] [ 49%] PASSED tests/test_integration_tox4.py::test_print_extras[--print-extras-to=--py310] 
tests/test_integration_tox4.py::test_print_extras[--print-extras-to=--py311] 
[gw4] [ 49%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--pre-py38] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--pre-py39] 
[gw0] [ 50%] PASSED tests/test_integration_tox4.py::test_print_deps_with_commands_pre_post[--print-deps-to=--both-py310] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--pre-py38] 
[gw6] [ 50%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py310] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py311] 
[gw2] [ 51%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py36] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py37] 
[gw3] [ 51%] PASSED tests/test_integration_tox4.py::test_print_extras[--print-extras-to=--py37] 
tests/test_integration_tox4.py::test_print_extras[--print-extras-to=--py38] 
[gw5] [ 52%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--both-py38] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--both-py39] 
[gw7] [ 52%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--both-py311] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--pre-py36] 
[gw1] [ 53%] PASSED tests/test_integration_tox4.py::test_print_extras[--print-extras-to=--py311] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--pre-py36] 
[gw4] [ 54%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--pre-py39] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--pre-py310] 
[gw0] [ 54%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--pre-py38] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--pre-py39] 
[gw3] [ 55%] PASSED tests/test_integration_tox4.py::test_print_extras[--print-extras-to=--py38] 
[gw6] [ 55%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py311] 
tests/test_integration_tox4.py::test_print_extras[--print-extras-to=--py39] 
[gw2] [ 56%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py37] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py38] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--both-py36] 
[gw5] [ 56%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--both-py39] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--both-py310] 
[gw1] [ 57%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--pre-py36] 
[gw7] [ 57%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--pre-py36] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--pre-py37] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--pre-py37] 
[gw0] [ 58%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--pre-py39] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--pre-py310] 
[gw4] [ 58%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--pre-py310] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--pre-py311] 
[gw2] [ 59%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py38] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py39] 
[gw6] [ 59%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--both-py36] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--both-py37] 
[gw3] [ 60%] PASSED tests/test_integration_tox4.py::test_print_extras[--print-extras-to=--py39] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--pre-py311] 
[gw5] [ 60%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--both-py310] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--post-py38] 
[gw1] [ 61%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--pre-py37] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--post-py311] 
[gw7] [ 62%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--pre-py37] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--both-py37] 
[gw0] [ 62%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--pre-py310] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--both-py39] 
[gw4] [ 63%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--pre-py311] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--both-py311] 
[gw2] [ 63%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--post-py39] 
tests/test_integration_tox4.py::test_allenvs_print_deps[--print-deps-to=-] 
[gw6] [ 64%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to-file=--both-py37] 
tests/test_integration_tox4.py::test_allenvs_print_extras[--print-extras-to=-] 
[gw5] [ 64%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--post-py38] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--post-py39] 
[gw3] [ 65%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--pre-py311] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--post-py36] 
[gw1] [ 65%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--post-py311] 
[gw7] [ 66%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--both-py37] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--both-py36] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--both-py38] 
[gw0] [ 66%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--both-py39] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--both-py310] 
[gw4] [ 67%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--both-py311] 
tests/test_integration_tox4.py::test_allenvs_print_deps[--print-deps-to-file=-] 
[gw2] [ 67%] PASSED tests/test_integration_tox4.py::test_allenvs_print_deps[--print-deps-to=-] 
tests/test_integration_tox4.py::test_allenvs_print_extras[--print-extras-to-file=-] 
[gw5] [ 68%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--post-py39] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--post-py310] 
[gw6] [ 68%] PASSED tests/test_integration_tox4.py::test_allenvs_print_extras[--print-extras-to=-] 
tests/test_integration_tox4.py::test_print_deps_to_file[py36] 
[gw3] [ 69%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--post-py36] 
tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--post-py37] 
[gw7] [ 70%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--both-py38] 
tests/test_integration_tox4.py::test_print_deps_to_file[py39] 
[gw1] [ 70%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--both-py36] 
tests/test_integration_tox4.py::test_print_deps_to_file[py37] 
[gw0] [ 71%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--both-py310] 
tests/test_integration_tox4.py::test_print_deps_to_file[py310] 
[gw4] [ 71%] PASSED tests/test_integration_tox4.py::test_allenvs_print_deps[--print-deps-to-file=-] 
tests/test_integration_tox4.py::test_print_deps_to_file[py311] 
[gw5] [ 72%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--post-py310] 
tests/test_integration_tox4.py::test_print_extras_to_file[py37] 
[gw2] [ 72%] PASSED tests/test_integration_tox4.py::test_allenvs_print_extras[--print-extras-to-file=-] 
tests/test_integration_tox4.py::test_print_extras_to_file[py36] 
[gw6] [ 73%] PASSED tests/test_integration_tox4.py::test_print_deps_to_file[py36] 
tests/test_integration_tox4.py::test_print_extras_to_file[py38] 
[gw7] [ 73%] PASSED tests/test_integration_tox4.py::test_print_deps_to_file[py39] 
[gw3] [ 74%] PASSED tests/test_integration_tox4.py::test_print_extras_with_commands_pre_post[--print-extras-to=--post-py37] 
tests/test_integration_tox4.py::test_print_extras_to_file[py310] 
tests/test_integration_tox4.py::test_print_extras_to_file[py39] 
[gw0] [ 74%] PASSED tests/test_integration_tox4.py::test_print_deps_to_file[py310] 
tests/test_integration_tox4.py::test_print_extras_to_file[py311] 
[gw1] [ 75%] PASSED tests/test_integration_tox4.py::test_print_deps_to_file[py37] 
tests/test_integration_tox4.py::test_print_deps_to_file[py38] 
[gw4] [ 75%] PASSED tests/test_integration_tox4.py::test_print_deps_to_file[py311] 
tests/test_integration_tox4.py::test_allenvs_print_deps_to_file[--print-deps-to] 
[gw5] [ 76%] PASSED tests/test_integration_tox4.py::test_print_extras_to_file[py37] 
tests/test_integration_tox4.py::test_allenvs_print_deps_to_file[--print-deps-to-file] 
[gw6] [ 77%] PASSED tests/test_integration_tox4.py::test_print_extras_to_file[py38] 
[gw2] [ 77%] PASSED tests/test_integration_tox4.py::test_print_extras_to_file[py36] 
tests/test_integration_tox4.py::test_allenvs_print_extras_to_file[--print-extras-to-file] 
tests/test_integration_tox4.py::test_allenvs_print_extras_to_file[--print-extras-to] 
[gw7] [ 78%] PASSED tests/test_integration_tox4.py::test_print_extras_to_file[py310] 
tests/test_integration_tox4.py::test_allenvs_print_deps_to_existing_file 
[gw3] [ 78%] PASSED tests/test_integration_tox4.py::test_print_extras_to_file[py39] 
tests/test_integration_tox4.py::test_allenvs_print_extras_to_existing_file 
[gw0] [ 79%] PASSED tests/test_integration_tox4.py::test_print_extras_to_file[py311] 
tests/test_integration_tox4.py::test_allenvs_print_deps_to_file_print_extras_to_other_file[True-True] 
[gw1] [ 79%] PASSED tests/test_integration_tox4.py::test_print_deps_to_file[py38] 
tests/test_integration_tox4.py::test_allenvs_print_deps_to_file_print_extras_to_other_file[True-False] 
[gw4] [ 80%] PASSED tests/test_integration_tox4.py::test_allenvs_print_deps_to_file[--print-deps-to] 
tests/test_integration_tox4.py::test_allenvs_print_deps_to_file_print_extras_to_other_file[False-True] 
[gw0] [ 80%] XFAIL tests/test_integration_tox4.py::test_allenvs_print_deps_to_file_print_extras_to_other_file[True-True] 
tests/test_integration_tox4.py::test_print_deps_extras_to_stdout_is_not_possible[--print-deps-to=----print-extras-to=-] 
[gw2] [ 81%] PASSED tests/test_integration_tox4.py::test_allenvs_print_extras_to_file[--print-extras-to] 
tests/test_integration_tox4.py::test_print_deps_extras_to_stdout_is_not_possible[--print-deps-to-file=----print-extras-to-file=-] 
[gw7] [ 81%] PASSED tests/test_integration_tox4.py::test_allenvs_print_deps_to_existing_file 
tests/test_integration_tox4.py::test_print_deps_extras_to_stdout_is_not_possible[--print-deps-to-file=----print-extras-to=-] 
[gw5] [ 82%] PASSED tests/test_integration_tox4.py::test_allenvs_print_deps_to_file[--print-deps-to-file] 
tests/test_integration_tox4.py::test_allenvs_print_deps_to_file_print_extras_to_other_file[False-False] 
[gw6] [ 82%] PASSED tests/test_integration_tox4.py::test_allenvs_print_extras_to_file[--print-extras-to-file] 
tests/test_integration_tox4.py::test_print_deps_extras_to_same_file_is_not_possible 
[gw3] [ 83%] PASSED tests/test_integration_tox4.py::test_allenvs_print_extras_to_existing_file 
tests/test_integration_tox4.py::test_print_deps_extras_to_stdout_is_not_possible[--print-deps-to=----print-extras-to-file=-] 
[gw0] [ 83%] PASSED tests/test_integration_tox4.py::test_print_deps_extras_to_stdout_is_not_possible[--print-deps-to=----print-extras-to=-] 
tests/test_integration_tox4.py::test_print_deps_without_python_command[--print-deps-to-file=-] 
[gw4] [ 84%] PASSED tests/test_integration_tox4.py::test_allenvs_print_deps_to_file_print_extras_to_other_file[False-True] 
tests/test_integration_tox4.py::test_regular_run_native_toxenv 
[gw1] [ 85%] PASSED tests/test_integration_tox4.py::test_allenvs_print_deps_to_file_print_extras_to_other_file[True-False] 
tests/test_integration_tox4.py::test_regular_run 
[gw7] [ 85%] PASSED tests/test_integration_tox4.py::test_print_deps_extras_to_stdout_is_not_possible[--print-deps-to-file=----print-extras-to=-] 
tests/test_integration_tox4.py::test_recreate_environment[--print-deps-to=-] 
[gw2] [ 86%] PASSED tests/test_integration_tox4.py::test_print_deps_extras_to_stdout_is_not_possible[--print-deps-to-file=----print-extras-to-file=-] 
tests/test_integration_tox4.py::test_print_deps_without_python_command[--print-deps-to=-] 
[gw6] [ 86%] PASSED tests/test_integration_tox4.py::test_print_deps_extras_to_same_file_is_not_possible 
tests/test_integration_tox4.py::test_self_is_not_installed[True---print-deps-to=-] 
[gw3] [ 87%] PASSED tests/test_integration_tox4.py::test_print_deps_extras_to_stdout_is_not_possible[--print-deps-to=----print-extras-to-file=-] 
tests/test_integration_tox4.py::test_self_is_not_installed[True---print-extras-to=-] 
[gw5] [ 87%] PASSED tests/test_integration_tox4.py::test_allenvs_print_deps_to_file_print_extras_to_other_file[False-False] 
tests/test_integration_tox4.py::test_recreate_environment[--current-env] 
[gw0] [ 88%] PASSED tests/test_integration_tox4.py::test_print_deps_without_python_command[--print-deps-to-file=-] 
tests/test_integration_tox4.py::test_self_is_not_installed[True---current-env] 
[gw6] [ 88%] PASSED tests/test_integration_tox4.py::test_self_is_not_installed[True---print-deps-to=-] 
tests/test_integration_tox4.py::test_self_is_installed_with_regular_tox[False] 
[gw3] [ 89%] PASSED tests/test_integration_tox4.py::test_self_is_not_installed[True---print-extras-to=-] 
tests/test_integration_tox4.py::test_passenv[None] 
[gw2] [ 89%] PASSED tests/test_integration_tox4.py::test_print_deps_without_python_command[--print-deps-to=-] 
tests/test_integration_tox4.py::test_self_is_installed_with_regular_tox[True] 
[gw0] [ 90%] PASSED tests/test_integration_tox4.py::test_self_is_not_installed[True---current-env] 
tests/test_integration_tox4.py::test_passenv[__var] 
[gw3] [ 90%] PASSED tests/test_integration_tox4.py::test_passenv[None] 
tests/test_integration_tox4.py::test_pass_env[None] 
[gw0] [ 91%] PASSED tests/test_integration_tox4.py::test_passenv[__var] 
tests/test_integration_tox4.py::test_pass_env[__var] 
[gw3] [ 91%] PASSED tests/test_integration_tox4.py::test_pass_env[None] 
tests/test_integration_tox4.py::test_pass_env[*] 
[gw0] [ 92%] PASSED tests/test_integration_tox4.py::test_pass_env[__var] 
tests/test_integration_tox4.py::test_report_installed 
[gw3] [ 93%] PASSED tests/test_integration_tox4.py::test_pass_env[*] 
[gw0] [ 93%] PASSED tests/test_integration_tox4.py::test_report_installed 
[gw4] [ 94%] PASSED tests/test_integration_tox4.py::test_regular_run_native_toxenv 
tests/test_integration_tox4.py::test_self_is_not_installed[False---print-deps-to=-] 
[gw4] [ 94%] PASSED tests/test_integration_tox4.py::test_self_is_not_installed[False---print-deps-to=-] 
[gw7] [ 95%] PASSED tests/test_integration_tox4.py::test_recreate_environment[--print-deps-to=-] 
tests/test_integration_tox4.py::test_self_is_not_installed[False---current-env] 
[gw5] [ 95%] PASSED tests/test_integration_tox4.py::test_recreate_environment[--current-env] 
tests/test_integration_tox4.py::test_passenv[different list] 
[gw2] [ 96%] PASSED tests/test_integration_tox4.py::test_self_is_installed_with_regular_tox[True] 
tests/test_integration_tox4.py::test_pass_env[different\nlist] 
[gw6] [ 96%] PASSED tests/test_integration_tox4.py::test_self_is_installed_with_regular_tox[False] 
tests/test_integration_tox4.py::test_passenv[*] 
[gw7] [ 97%] PASSED tests/test_integration_tox4.py::test_self_is_not_installed[False---current-env] 
[gw5] [ 97%] PASSED tests/test_integration_tox4.py::test_passenv[different list] 
[gw6] [ 98%] PASSED tests/test_integration_tox4.py::test_passenv[*] 
[gw2] [ 98%] PASSED tests/test_integration_tox4.py::test_pass_env[different\nlist] 
[gw1] [ 99%] PASSED tests/test_integration_tox4.py::test_regular_run 
tests/test_integration_tox4.py::test_self_is_not_installed[False---print-extras-to=-] 
[gw1] [100%] PASSED tests/test_integration_tox4.py::test_self_is_not_installed[False---print-extras-to=-] 

=================================== FAILURES ===================================
________ test_print_deps_with_tox_requires[--print-deps-to-file=--py37] ________
[gw2] linux -- Python 3.12.1 ~/tox-current-env/.tox/py312-tox4/bin/python

projdir = PosixPath('/tmp/pytest-of-churchyard/pytest-23/popen-gw2/test_print_deps_with_tox_requi0/projdir')
toxenv = 'py37', print_deps_stdout_arg = '--print-deps-to-file=-'

    @pytest.mark.parametrize("toxenv", envs_from_tox_ini())
    def test_print_deps_with_tox_requires(projdir, toxenv, print_deps_stdout_arg):
        with modify_config(projdir / "tox.ini") as config:
            config["tox"]["requires"] = "\n    setuptools > 30\n    pluggy"
>       result = tox("-e", toxenv, print_deps_stdout_arg)

~/tox-current-env/tests/test_integration_tox4.py:91: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
~/tox-current-env/tests/utils.py:45: in tox
    cp = subprocess.run((sys.executable, "-m", "tox") + q + args, **kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

input = None, capture_output = False, timeout = None, check = True
popenargs = (('~/tox-current-env/.tox/py312-tox4/bin/python', '-m', 'tox', '-q', '-e', 'py37', ...),)
kwargs = {'cwd': '/tmp/pytest-of-churchyard/pytest-23/popen-gw2/test_print_deps_with_tox_requi0/projdir', 'encoding': 'utf-8', .../usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin', 'PIP_DISABLE_PIP_VERSION_CHECK': '1', ...}, 'stderr': -1, ...}
process = <Popen: returncode: 1 args: ('~/tox-current-...>
stdout = 'setuptools>30\npluggy\ntox\nsetuptools>30\npluggy\ntox\n'
stderr = 'Traceback (most recent call last):\n  File "<frozen runpy>", line 198, in _run_module_as_main\n  File "<frozen runpy>...elf._paths)\n                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nTypeError: \'NoneType\' object is not iterable\n'
retcode = 1

    def run(*popenargs,
            input=None, capture_output=False, timeout=None, check=False, **kwargs):
        """Run command with arguments and return a CompletedProcess instance.

        The returned instance will have attributes args, returncode, stdout and
        stderr. By default, stdout and stderr are not captured, and those attributes
        will be None. Pass stdout=PIPE and/or stderr=PIPE in order to capture them,
        or pass capture_output=True to capture both.

        If check is True and the exit code was non-zero, it raises a
        CalledProcessError. The CalledProcessError object will have the return code
        in the returncode attribute, and output & stderr attributes if those streams
        were captured.

        If timeout is given, and the process takes too long, a TimeoutExpired
        exception will be raised.

        There is an optional argument "input", allowing you to
        pass bytes or a string to the subprocess's stdin.  If you use this argument
        you may not also use the Popen constructor's "stdin" argument, as
        it will be used internally.

        By default, all communication is in bytes, and therefore any "input" should
        be bytes, and the stdout and stderr will be bytes. If in text mode, any
        "input" should be a string, and stdout and stderr will be strings decoded
        according to locale encoding, or by "encoding" if set. Text mode is
        triggered by setting any of text, encoding, errors or universal_newlines.

        The other arguments are the same as for the Popen constructor.
        """
        if input is not None:
            if kwargs.get('stdin') is not None:
                raise ValueError('stdin and input arguments may not both be used.')
            kwargs['stdin'] = PIPE

        if capture_output:
            if kwargs.get('stdout') is not None or kwargs.get('stderr') is not None:
                raise ValueError('stdout and stderr arguments may not be used '
                                 'with capture_output.')
            kwargs['stdout'] = PIPE
            kwargs['stderr'] = PIPE

        with Popen(*popenargs, **kwargs) as process:
            try:
                stdout, stderr = process.communicate(input, timeout=timeout)
            except TimeoutExpired as exc:
                process.kill()
                if _mswindows:
                    # Windows accumulates the output in a single blocking
                    # read() call run on child threads, with the timeout
                    # being done in a join() on those threads.  communicate()
                    # _after_ kill() is required to collect that and add it
                    # to the exception.
                    exc.stdout, exc.stderr = process.communicate()
                else:
                    # POSIX _communicate already populated the output so
                    # far into the TimeoutExpired exception.
                    process.wait()
                raise
            except:  # Including KeyboardInterrupt, communicate handled that.
                process.kill()
                # We don't call process.wait() as .__exit__ does that for us.
                raise
            retcode = process.poll()
            if check and retcode:
>               raise CalledProcessError(retcode, process.args,
                                         output=stdout, stderr=stderr)
E               subprocess.CalledProcessError: Command '('~/tox-current-env/.tox/py312-tox4/bin/python', '-m', 'tox', '-q', '-e', 'py37', '--print-deps-to-file=-')' returned non-zero exit status 1.

/usr/lib64/python3.12/subprocess.py:571: CalledProcessError
----------------------------- Captured stdout call -----------------------------
current /tmp/pytest-of-churchyard/pytest-23/popen-gw2/test_print_deps_with_tox_requi0/projdir running in /tmp/pytest-of-churchyard/pytest-23/popen-gw2/test_print_deps_with_tox_requi0/projdir
setuptools>30
pluggy
tox
setuptools>30
pluggy
tox

----------------------------- Captured stderr call -----------------------------
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "~/tox-current-env/.tox/py312-tox4/lib/python3.12/site-packages/tox/__main__.py", line 6, in <module>
    run()
  File "~/tox-current-env/.tox/py312-tox4/lib/python3.12/site-packages/tox/run.py", line 19, in run
    result = main(sys.argv[1:] if args is None else args)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/tox-current-env/.tox/py312-tox4/lib/python3.12/site-packages/tox/run.py", line 41, in main
    result = provision(state)
             ^^^^^^^^^^^^^^^^
  File "~/tox-current-env/.tox/py312-tox4/lib/python3.12/site-packages/tox/provision.py", line 127, in provision
    return run_provision(provision_tox_env, state)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/tox-current-env/.tox/py312-tox4/lib/python3.12/site-packages/tox/provision.py", line 154, in run_provision
    outcome = tox_env.execute(cmd=args, stdin=StdinSource.user_only(), show=True, run_id="provision", cwd=Path.cwd())
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/tox-current-env/.tox/py312-tox4/lib/python3.12/site-packages/tox/tox_env/api.py", line 390, in execute
    with self.execute_async(cmd, stdin, show, cwd, run_id, executor) as status:
  File "/usr/lib64/python3.12/contextlib.py", line 137, in __enter__
    return next(self.gen)
           ^^^^^^^^^^^^^^
  File "~/tox-current-env/.tox/py312-tox4/lib/python3.12/site-packages/tox/tox_env/api.py", line 420, in execute_async
    request = ExecuteRequest(cmd, cwd, self.environment_variables, stdin, run_id, allow=self._allow_externals)
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/tox-current-env/.tox/py312-tox4/lib/python3.12/site-packages/tox/tox_env/runner.py", line 191, in environment_variables
    environment_variables = super().environment_variables
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "~/tox-current-env/.tox/py312-tox4/lib/python3.12/site-packages/tox/tox_env/api.py", line 339, in environment_variables
    result["PATH"] = self._make_path()
                     ^^^^^^^^^^^^^^^^^
  File "~/tox-current-env/.tox/py312-tox4/lib/python3.12/site-packages/tox/tox_env/api.py", line 376, in _make_path
    values = dict.fromkeys(str(i) for i in self._paths)
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object is not iterable

...

=========================== short test summary info ============================
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py37]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py37]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py37]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py37]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py38]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py38]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py38]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py38]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py39]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py39]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py39]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py39]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py310]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py310]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py310]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py310]
current ~/tox-current-env running in ~/tox-current-env
4.5.1.1 from ~/tox-current-env/.tox/py312-tox4/lib/python3.12/site-packages/tox/__init__.py
registered plugins:
    tox-current-env-0.0.11 at ~/tox-current-env/.tox/py312-tox4/lib/python3.12/site-packages/tox_current_env/hooks.py

Python 3.6.15
Python 3.7.17
Python 3.8.18
Python 3.9.18
Python 3.10.13
Python 3.11.7
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py311]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py311]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py311]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py311]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to=--py36]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_requires[--print-deps-to-file=--py36]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to=--py36]
FAILED tests/test_integration_tox4.py::test_print_deps_with_tox_minversion_and_requires[--print-deps-to-file=--py36]
============ 24 failed, 162 passed, 1 skipped, 1 xfailed in 26.23s =============
py312-tox4: exit 1 (26.67 seconds) ~/tox-current-env> pytest -v tests pid=2151539
.pkg: _exit> python /usr/lib/python3.12/site-packages/pyproject_api/_backend.py True setuptools.build_meta
  py312-tox4: FAIL code 1 (30.50=setup[3.83]+cmd[26.67] seconds)
  evaluation failed :( (30.55 seconds)

full output.txt

hroncok commented 8 months ago

This seems to work, but I don't understand why it is only needed on Python 3.12:

diff --git a/src/tox_current_env/hooks4.py b/src/tox_current_env/hooks4.py
index 5628eff..a24cc5b 100644
--- a/src/tox_current_env/hooks4.py
+++ b/src/tox_current_env/hooks4.py
@@ -249,6 +249,7 @@ class PrintEnv(CurrentEnv):
                 file=self.options.print_extras_to,
             )
             self.options.print_extras_to.flush()
+        return super().prepend_env_var_path()

     @staticmethod
     def id():

Nevertheless, it kills my computer at after [gw2] [ 85%] PASSED anyway.