1
0
mirror of https://github.com/fedora-python/tox-current-env.git synced 2025-11-05 18:48:57 +01:00

Skip tox 3/4 tests with tox 4/3 via pytest, not tox

This commit is contained in:
Miro Hrončok
2022-12-12 19:04:32 +01:00
parent ad6bcf5c19
commit f71dd2a238
3 changed files with 11 additions and 2 deletions

View File

@@ -10,6 +10,7 @@ from utils import (
NATIVE_EXEC_PREFIX_MSG,
NATIVE_SITE_PACKAGES,
NATIVE_TOXENV,
TOX_VERSION,
TOX_MIN_VERSION,
envs_from_tox_ini,
modify_config,
@@ -20,6 +21,10 @@ from utils import (
)
if TOX_VERSION.major != 4:
pytest.skip("skipping tests for tox 4", allow_module_level=True)
def test_native_toxenv_current_env():
result = tox("-e", NATIVE_TOXENV, "--current-env")
assert result.stdout.splitlines()[0] == NATIVE_EXEC_PREFIX_MSG