diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-02-10 15:51:57 +0100 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2023-02-10 15:51:57 +0100 |
commit | 9d5eafe596e75e30a85c01ed62bb5bea9389adc8 (patch) | |
tree | edbb8b862867c50ea2b93359f6785da3a679a4c0 /numpy/lib/tests | |
parent | 0d9d10dd6d23d874701bcff951510a178f6836be (diff) | |
download | numpy-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.py | 2 |
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 |