MCPcopy
hub / github.com/pytest-dev/pytest / test_skipif_using_platform

Method test_skipif_using_platform

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

pytest_runtest_setupFunction · 0.90
getitemMethod · 0.45

Tested by

no test coverage detected