summaryrefslogtreecommitdiff
path: root/numpy
diff options
context:
space:
mode:
authorMatthew <quitesimplymatt@gmail.com>2021-11-02 17:08:21 +0000
committerMatthew <quitesimplymatt@gmail.com>2021-11-04 09:15:13 +0000
commit5702b51bd22b2a96a87bebb3518a57a2ad6904ca (patch)
tree9558ed28b3739542a8ef78fe7086c0ed0ad49782 /numpy
parentd887db45be0ede22afcfb4fb02aa4570ec6befe0 (diff)
downloadnumpy-5702b51bd22b2a96a87bebb3518a57a2ad6904ca.tar.gz
xfail `test_array_api_entry_point` on python-dbg
Diffstat (limited to 'numpy')
-rw-r--r--numpy/tests/test_public_api.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/numpy/tests/test_public_api.py b/numpy/tests/test_public_api.py
index 1eca25afb..fa29c75b5 100644
--- a/numpy/tests/test_public_api.py
+++ b/numpy/tests/test_public_api.py
@@ -1,4 +1,5 @@
import sys
+import sysconfig
import subprocess
import pkgutil
import types
@@ -460,6 +461,14 @@ def test_api_importable():
"{}".format(module_names))
+@pytest.mark.xfail(
+ sysconfig.get_config_var("Py_DEBUG") is not None,
+ reason=(
+ "NumPy possibly built with `USE_DEBUG=True ./tools/travis-test.sh`, "
+ "which does not expose the `array_api` entry point. "
+ "See https://github.com/numpy/numpy/pull/19800"
+ ),
+)
def test_array_api_entry_point():
"""
Entry point for Array API implementation can be found with importlib and