Skip to content

Commit 39a48e1

Browse files
committed
"broken_complex" marker now skips only on Windows
1 parent 2173b53 commit 39a48e1

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
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)

dpctl/tests/elementwise/test_hyperbolic.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# limitations under the License.
1616

1717
import itertools
18-
import os
1918

2019
import numpy as np
2120
import pytest

dpctl/tests/elementwise/test_trigonometric.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
# limitations under the License.
1616

1717
import itertools
18-
import os
1918

2019
import numpy as np
2120
import pytest

0 commit comments

Comments
 (0)