From d56c48754ba07b36e0e8561887cbc0c732ff54d0 Mon Sep 17 00:00:00 2001 From: Sebastian Berg Date: Fri, 2 Dec 2022 17:18:08 +0100 Subject: [PATCH] TST: Skip when numba/numpy compat issues cause SystemError numba is a bit buggy when wrapping ufuncs, so what should be nothing is (on non dev versions) a SystemError and not even an ImportError. So simply catch those too, since it can be a confusing error during dev otherwise. --- numpy/random/tests/test_extending.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/numpy/random/tests/test_extending.py b/numpy/random/tests/test_extending.py index d5898d25b81c..bc24bd259e8f 100644 --- a/numpy/random/tests/test_extending.py +++ b/numpy/random/tests/test_extending.py @@ -23,7 +23,8 @@ # numba issue gh-4733 warnings.filterwarnings('always', '', DeprecationWarning) import numba -except ImportError: +except (ImportError, SystemError): + # Certain numpy/numba versions trigger a SystemError due to a numba bug numba = None try: