Skip to content

Commit 7162807

Browse files
committed
TST: skip array_conversion tests for python < 3.12
1 parent ddc14d8 commit 7162807

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

array_api_strict/tests/test_array_object.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import sys
12
import operator
23
from builtins import all as all_
34

@@ -351,6 +352,10 @@ def test_array_properties():
351352
assert b.mT.shape == (3, 2)
352353

353354

355+
@pytest.mark.xfail(sys.version_info.major*100 + sys.version_info.minor < 312,
356+
reason="array conversion relies on buffer protocol, and "
357+
"requires python >= 3.12"
358+
)
354359
def test_array_conversion():
355360
# Check that arrays on the CPU device can be converted to NumPy
356361
# but arrays on other devices can't. Note this is testing the logic in

0 commit comments

Comments
 (0)