@pytest.mark.skipif(sys.platform != 'darwin', reason="Mac tests") def test_func(): ...