PyTest - Markers
Which of the following conditions correctly skips a test only on Windows OS using
@pytest.mark.skipif?@pytest.mark.skipif?sys.platform returns 'win32' on Windows systems.sys.platform == 'win32' is True only on Windows, so the test is skipped there.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions