We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91dc096 commit 443b43cCopy full SHA for 443b43c
tests/conftest.py
@@ -26,4 +26,5 @@ def _ensure_py_info_cache_empty(session_cache: DiskCache) -> Generator[None]:
26
def _skip_if_test_in_system(session_cache: DiskCache) -> None:
27
current = PythonInfo.current(session_cache)
28
if current.system_executable is not None: # pragma: no cover
29
- pytest.skip("test not valid if run under system")
+ msg = "test not valid if run under system"
30
+ raise pytest.skip.Exception(msg)
0 commit comments