Skip to content

Commit 8a59494

Browse files
committed
Skip faulty int type promotion tests for pow-related functions
1 parent 6056213 commit 8a59494

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

array_api_tests/conftest.py

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
import re
2+
3+
import pytest
4+
5+
r_int_pow_promotion = re.compile(r"test.+promotion\[.*pow.*\(u?int.+\]")
6+
7+
8+
def pytest_collection_modifyitems(config, items):
9+
"""Skips the faulty integer type promotion tests for pow-related functions"""
10+
for item in items:
11+
print(item.name)
12+
if r_int_pow_promotion.match(item.name):
13+
item.add_marker(
14+
pytest.mark.skip(
15+
reason="faulty test logic - negative exponents generated"
16+
)
17+
)

0 commit comments

Comments
 (0)