diff options
author | Warren Weckesser <warren.weckesser@gmail.com> | 2020-01-23 14:37:06 -0500 |
---|---|---|
committer | Warren Weckesser <warren.weckesser@gmail.com> | 2020-01-23 14:37:06 -0500 |
commit | c758839239626a2acc1884f58e9e3eb7c9177cb6 (patch) | |
tree | 8fbdd465a9d9614ba5047dbc0c7b1b9e3d4d4abc /numpy/core/tests | |
parent | 04ac2a13b302a7af6fe2a5ca67e09a0e09a0f8e7 (diff) | |
download | numpy-c758839239626a2acc1884f58e9e3eb7c9177cb6.tar.gz |
BUG/TEST: core: Fix an undefined name in a test.
This hasn't generated an error because the test is marked `xfail`.
Code checkers such as pyflakes will flag it, so fixing it is worthwhile.
Diffstat (limited to 'numpy/core/tests')
-rw-r--r-- | numpy/core/tests/test_numeric.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/tests/test_numeric.py b/numpy/core/tests/test_numeric.py index c4956c298..33e71a064 100644 --- a/numpy/core/tests/test_numeric.py +++ b/numpy/core/tests/test_numeric.py @@ -2015,7 +2015,7 @@ class TestClip: def test_NaT_propagation(self, arr, amin, amax): # NOTE: the expected function spec doesn't # propagate NaT, but clip() now does - expected = np.minimum(np.maximum(a, amin), amax) + expected = np.minimum(np.maximum(arr, amin), amax) actual = np.clip(arr, amin, amax) assert_equal(actual, expected) |