MCPcopy Index your code
hub / github.com/microsoft/playwright-python / skip_by_platform

Function skip_by_platform

tests/conftest.py:169–175  ·  view source on GitHub ↗
(request: pytest.FixtureRequest)

Source from the content-addressed store, hash-verified

167
168@pytest.fixture(autouse=True)
169def skip_by_platform(request: pytest.FixtureRequest) -> None:
170 skip_platform_names = _get_skiplist(
171 request, ["win32", "linux", "darwin"], "platform"
172 )
173
174 if sys.platform in skip_platform_names:
175 pytest.skip(f"skipped on this platform: {sys.platform}")
176
177
178def pytest_addoption(parser: pytest.Parser) -> None:

Callers

nothing calls this directly

Calls 1

_get_skiplistFunction · 0.85

Tested by

no test coverage detected