Skip to content

Commit d68896d

Browse files
broken_complex marker skips tests on both Windows and Linux
Tests to be disable are in test_sqrt, test_exp, test_trigonometric, test_hyperbolic based on test run with 2024 compiler stack.
1 parent d88387b commit d68896d

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

dpctl/tests/conftest.py

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

5959

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

dpctl/tests/elementwise/test_exp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ def test_exp_complex_strided(dtype):
198198
)
199199

200200

201+
@pytest.mark.broken_complex
201202
@pytest.mark.parametrize("dtype", ["c8", "c16"])
202203
def test_exp_complex_special_cases(dtype):
203204
q = get_queue_or_skip()

dpctl/tests/elementwise/test_sqrt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def test_sqrt_real_fp_special_values(dtype):
157157
assert dpt.allclose(r, expected, atol=tol, rtol=tol, equal_nan=True)
158158

159159

160+
@pytest.mark.broken_complex
160161
@pytest.mark.parametrize("dtype", _complex_fp_dtypes)
161162
def test_sqrt_complex_fp_special_values(dtype):
162163
q = get_queue_or_skip()

0 commit comments

Comments
 (0)