mirror of
https://github.com/huggingface/kernels.git
synced 2025-10-20 21:10:02 +08:00
11 lines
360 B
Python
11 lines
360 B
Python
import sys
|
|
|
|
import pytest
|
|
|
|
|
|
def pytest_runtest_setup(item):
|
|
if "linux_only" in item.keywords and not sys.platform.startswith("linux"):
|
|
pytest.skip("skipping Linux-only test on non-Linux platform")
|
|
if "darwin_only" in item.keywords and not sys.platform.startswith("darwin"):
|
|
pytest.skip("skipping macOS-only test on non-macOS platform")
|