MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_skipif_using_platform

Method test_skipif_using_platform

testing/test_skipping.py:915–924  ·  view source on GitHub ↗
(self, pytester: Pytester)

Source from the content-addressed store, hash-verified

913 assert result.ret == 0
914
915 def test_skipif_using_platform(self, pytester: Pytester) -> None:
916 item = pytester.getitem(
917 """
918 import pytest
919 @pytest.mark.skipif("platform.platform() == platform.platform()")
920 def test_func():
921 pass
922 """
923 )
924 pytest.raises(pytest.skip.Exception, lambda: pytest_runtest_setup(item))
925
926 @pytest.mark.parametrize(
927 "marker, msg1, msg2",

Callers

nothing calls this directly

Calls 2

pytest_runtest_setupFunction · 0.90
getitemMethod · 0.45

Tested by

no test coverage detected