summaryrefslogtreecommitdiff
path: root/numpy/core
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2023-04-04 18:09:15 +0200
committerSebastian Berg <sebastianb@nvidia.com>2023-04-04 18:09:15 +0200
commiteeb8153a251675f90636fa09b9ae17044b5dc7f2 (patch)
treec1f7ff9ece1805a05faadb3476e10bf67c7b1879 /numpy/core
parent5c09dea8dc68bd54d7743557cae1d6409b07da92 (diff)
downloadnumpy-eeb8153a251675f90636fa09b9ae17044b5dc7f2.tar.gz
TST,DOC: Avoid spaces to hopefully ensure more info on error and fix memtests
Diffstat (limited to 'numpy/core')
-rw-r--r--numpy/core/code_generators/genapi.py2
-rw-r--r--numpy/core/tests/test_mem_policy.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/numpy/core/code_generators/genapi.py b/numpy/core/code_generators/genapi.py
index c5a16d2b8..909caefdf 100644
--- a/numpy/core/code_generators/genapi.py
+++ b/numpy/core/code_generators/genapi.py
@@ -112,7 +112,7 @@ class MinVersion:
def add_guard(self, name, normal_define):
"""Wrap a definition behind a version guard"""
numpy_target_help_pointer = (
- "(Old_NumPy_target see also: "
+ "(Old_NumPy_target_see_depending_on_numpy__"
"https://numpy.org/devdocs/dev/depending_on_numpy.html)")
wrap = textwrap.dedent(f"""
diff --git a/numpy/core/tests/test_mem_policy.py b/numpy/core/tests/test_mem_policy.py
index 79abdbf1e..5746dfa96 100644
--- a/numpy/core/tests/test_mem_policy.py
+++ b/numpy/core/tests/test_mem_policy.py
@@ -89,6 +89,7 @@ def get_module(tmp_path):
"""),
]
prologue = '''
+ #define NPY_TARGET_VERSION NPY_1_22_API_VERSION
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/arrayobject.h>
/*