From 73dd028449b326675a7af49e6fe042eeac289253 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 1 Aug 2020 13:03:20 +0200 Subject: Try to fix NumPy test failures by not setting the "NPY_NO_DEPRECATED_API" #define for NumPy 1.19.[01]. --- runtests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- cgit v1.2.1