pytest allows you to skip a test under some condition (i.e.: on a platform):
@pytest.mark.skipif(sys.platform == "win32")
def test_foo(fixture):
assert bar(fixture)
Is there a way to create a mark to make the test fail under a certain condition?
@pytest.mark.failif(sys.platform == "win32")
def test_foo(fixture):
assert bar(fixture)