Skip to content

Commit

Permalink
numpy 1.10 np.ma.median([1,2,nan,4,5]) returns nan by default
Browse files Browse the repository at this point in the history
  • Loading branch information
keflavich committed May 8, 2017
1 parent a6274ae commit 65e7cee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astropy/stats/tests/test_funcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ def test_mad_std():
data = normal(5, 2, size=(100, 100))
assert_allclose(funcs.mad_std(data), 2.0, rtol=0.05)

@pytest.mark.xfail('not NUMPY_LT_1_11')
@pytest.mark.xfail('not NUMPY_LT_1_10')
def test_mad_std_scalar_return():
with NumpyRNGContext(12345):
data = normal(5, 2, size=(10, 10))
Expand Down

0 comments on commit 65e7cee

Please sign in to comment.