Skip to content

Commit 443b43c

Browse files
committed
🐛 fix(types): use keyword arg for pytest.skip
ty on 3.8 reports too-many-positional-arguments for pytest.skip().
1 parent 91dc096 commit 443b43c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ def _ensure_py_info_cache_empty(session_cache: DiskCache) -> Generator[None]:
2626
def _skip_if_test_in_system(session_cache: DiskCache) -> None:
2727
current = PythonInfo.current(session_cache)
2828
if current.system_executable is not None: # pragma: no cover
29-
pytest.skip("test not valid if run under system")
29+
msg = "test not valid if run under system"
30+
raise pytest.skip.Exception(msg)

0 commit comments

Comments
 (0)