Skip to content

Commit

Permalink
Merge pull request #5020 from charris/disable-some-test-warnings
Browse files Browse the repository at this point in the history
TST: Silence some warning that turns up on OpenBSD.
  • Loading branch information
juliantaylor committed Sep 2, 2014
2 parents 4a501a0 + affeaf5 commit 588bcc4
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions numpy/core/tests/test_umath.py
Original file line number Diff line number Diff line change
Expand Up @@ -333,11 +333,10 @@ def test_log1p(self):
assert_almost_equal(ncu.log1p(1e-6), ncu.log(1+1e-6))

def test_special(self):
assert_equal(ncu.log1p(np.nan), np.nan)
assert_equal(ncu.log1p(np.inf), np.inf)
with np.errstate(divide="ignore"):
with np.errstate(invalid="ignore", divide="ignore"):
assert_equal(ncu.log1p(np.nan), np.nan)
assert_equal(ncu.log1p(np.inf), np.inf)
assert_equal(ncu.log1p(-1.), -np.inf)
with np.errstate(invalid="ignore"):
assert_equal(ncu.log1p(-2.), np.nan)
assert_equal(ncu.log1p(-np.inf), np.nan)

Expand Down

0 comments on commit 588bcc4

Please sign in to comment.