Skip to content

Commit 8cdc736

Browse files
committed
"broken_complex" marker now skips only on Windows
1 parent e5c12f4 commit 8cdc736

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

dpctl/tests/conftest.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,17 @@ def pytest_addoption(parser):
5353
"--runcomplex",
5454
action="store_true",
5555
default=False,
56-
help="run broken complex tests",
56+
help="run broken complex tests on Windows",
5757
)
5858

5959

6060
def pytest_collection_modifyitems(config, items):
6161
if config.getoption("--runcomplex"):
6262
return
63-
skip_complex = pytest.mark.skip(reason="need --runcomplex option to run")
63+
skip_complex = pytest.mark.skipif(
64+
os.name == "nt",
65+
reason="need --runcomplex option to run on Windows",
66+
)
6467
for item in items:
6568
if "broken_complex" in item.keywords:
6669
item.add_marker(skip_complex)

0 commit comments

Comments
 (0)