Skip to content

Commit a89afba

Browse files
committed
tests: skip if venv is present
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 609ba2c commit a89afba

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_env.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,10 @@ def test_can_get_venv_paths_with_conflicting_default_scheme(
4646
assert get_scheme_names.call_count == 1
4747

4848

49-
@pytest.mark.skipif('posix_local' not in sysconfig.get_scheme_names(), reason='workaround for Debian/Ubuntu Python')
49+
SCHEME_NAMES = sysconfig.get_scheme_names()
50+
51+
@pytest.mark.skipif('posix_local' not in SCHEME_NAMES, reason='workaround for Debian/Ubuntu Python')
52+
@pytest.mark.skipif('venv' in SCHEME_NAMES, reason = 'different call if venv is in scheme names')
5053
def test_can_get_venv_paths_with_posix_local_default_scheme(
5154
mocker: pytest_mock.MockerFixture,
5255
):

0 commit comments

Comments
 (0)