Skip to content

Commit

Permalink
BUG/TEST: core: Fix an undefined name in a test.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
WarrenWeckesser committed Jan 23, 2020
1 parent 04ac2a1 commit c758839
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion numpy/core/tests/test_numeric.py
Original file line number Diff line number Diff line change
Expand Up @@ -2015,7 +2015,7 @@ def test_clip_scalar_nan_propagation(self, arr, amin, amax):
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)

Expand Down

0 comments on commit c758839

Please sign in to comment.