summaryrefslogtreecommitdiff
path: root/numpy/lib/tests
diff options
context:
space:
mode:
authorSebastian Berg <sebastianb@nvidia.com>2023-02-10 15:51:57 +0100
committerSebastian Berg <sebastianb@nvidia.com>2023-02-10 15:51:57 +0100
commit9d5eafe596e75e30a85c01ed62bb5bea9389adc8 (patch)
treeedbb8b862867c50ea2b93359f6785da3a679a4c0 /numpy/lib/tests
parent0d9d10dd6d23d874701bcff951510a178f6836be (diff)
downloadnumpy-9d5eafe596e75e30a85c01ed62bb5bea9389adc8.tar.gz
MAINT: Use `np._using_numpy2_behavior()` and initialize it in C
Diffstat (limited to 'numpy/lib/tests')
-rw-r--r--numpy/lib/tests/test_function_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/tests/test_function_base.py b/numpy/lib/tests/test_function_base.py
index fb98a94cd..cc8003f61 100644
--- a/numpy/lib/tests/test_function_base.py
+++ b/numpy/lib/tests/test_function_base.py
@@ -1219,7 +1219,7 @@ class TestGradient:
def test_return_type(self):
res = np.gradient(([1, 2], [2, 3]))
- if np._numpy2_behavior:
+ if np._using_numpy2_behavior():
assert type(res) is tuple
else:
assert type(res) is list