Skip to content

Commit

Permalink
TST: skip array_conversion tests for python < 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
ev-br committed Dec 26, 2024
1 parent ddc14d8 commit 7162807
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions array_api_strict/tests/test_array_object.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import operator
from builtins import all as all_

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


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

0 comments on commit 7162807

Please sign in to comment.