summaryrefslogtreecommitdiff
path: root/numpy/core/tests
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2020-01-23 15:02:49 -0700
committerGitHub <noreply@github.com>2020-01-23 15:02:49 -0700
commitc61e667c90f7aa80c41fcfa3dd098832fbfe7139 (patch)
tree11057fdd02f2da93a0a1893fdabd24ab6fe0949b /numpy/core/tests
parentfe703817322535ee97f361fa8df21e2c019ad429 (diff)
parentc758839239626a2acc1884f58e9e3eb7c9177cb6 (diff)
downloadnumpy-c61e667c90f7aa80c41fcfa3dd098832fbfe7139.tar.gz
Merge pull request #15405 from WarrenWeckesser/undefa
BUG/TEST: core: Fix an undefined name in a test.
Diffstat (limited to 'numpy/core/tests')
-rw-r--r--numpy/core/tests/test_numeric.py2
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)