summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Behnel <stefan_ml@behnel.de>2020-08-01 13:03:20 +0200
committerStefan Behnel <stefan_ml@behnel.de>2020-08-01 13:03:20 +0200
commit73dd028449b326675a7af49e6fe042eeac289253 (patch)
treee4bdaa5e8e8d6f2398e3d35c44573351b89ffc6c
parent02d4195a3f8949c50d0961a9205adaeff60f41ce (diff)
downloadcython-73dd028449b326675a7af49e6fe042eeac289253.tar.gz
Try to fix NumPy test failures by not setting the "NPY_NO_DEPRECATED_API" #define for NumPy 1.19.[01].
-rwxr-xr-xruntests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtests.py b/runtests.py
index 240335dd9..45be1161f 100755
--- a/runtests.py
+++ b/runtests.py
@@ -241,7 +241,7 @@ def update_numpy_extension(ext, set_api17_macro=True):
ext.include_dirs.append(numpy.get_include())
- if set_api17_macro:
+ if set_api17_macro and getattr(numpy, '__version__', '') not in ('1.19.0', '1.19.1'):
ext.define_macros.append(('NPY_NO_DEPRECATED_API', 'NPY_1_7_API_VERSION'))
# We need the npymath library for numpy.math.