diff --git a/tox.ini b/tox.ini --- a/tox.ini 2018-02-22 12:08:28.000000000 +0100 +++ b/tox.ini 2018-05-16 22:15:56.000000000 +0200 @@ -15,7 +15,8 @@ setenv = COVERAGE_FILE={toxworkdir}/.coverage.{envname} passenv = http_proxy https_proxy no_proxy SSL_CERT_FILE TOXENV CI TRAVIS TRAVIS_* APPVEYOR APPVEYOR_* CODECOV_* extras = testing -commands = pytest {posargs:--cov-config="{toxinidir}/tox.ini" --cov="{envsitepackagesdir}/tox" --timeout=180 tests} +commands = pytest-PY_RAW {posargs:--cov-config="{toxinidir}/tox.ini" --cov="{envsitepackagesdir}/tox" --timeout=180 tests} +whitelist_externals: pytest-PY_RAW [testenv:docs] description = invoke sphinx-build to build the HTML docs, check that URIs are valid diff --git a/tests/test_z_cmdline.py b/tests/test_z_cmdline.py --- a/tests/test_z_cmdline.py 2018-03-24 11:05:06.000000000 +0100 +++ b/tests/test_z_cmdline.py 2018-05-16 22:07:44.000000000 +0200 @@ -492,7 +492,7 @@ changedir=tests commands= pytest --basetemp={envtmpdir} \ --junitxml=junit-{envname}.xml - deps=pytest + sitepackages=True ''' }) @@ -586,7 +586,7 @@ changedir=tests commands= pytest --basetemp={envtmpdir} --junitxml=junit-{envname}.xml [] - deps=pytest + sitepackages=True ''' }) result = cmd("-v") @@ -892,13 +892,15 @@ " Environment variables are missing or defined recursively.\n") +@pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'), reason='Use DEP-8') def test_tox_console_script(): - result = subprocess.check_call(['tox', '--help']) + result = subprocess.check_call(['tox-pyPY_PKG', '--help']) assert result == 0 +@pytest.mark.skipif(os.environ.get('DEB_SKIP_TOX_TESTS'), reason='Use DEP-8') def test_tox_quickstart_script(): - result = subprocess.check_call(['tox-quickstart', '--help']) + result = subprocess.check_call(['tox-quickstart-pyPY_PKG', '--help']) assert result == 0