|
import sys
|
|
import pytest
|
|
|
|
ALL = set("darwin linux2 win32".split())
|
|
|
|
|
|
def pytest_runtest_setup(item):
|
|
if isinstance(item, pytest.Function):
|
|
plat = sys.platform
|
|
if not item.get_marker(plat):
|
|
if ALL.intersection(item.keywords):
|
|
pytest.skip("cannot run on platform %s" % (plat))
|