diff options
author | Stephan Hoyer <shoyer@climate.com> | 2016-01-12 20:44:34 -0800 |
---|---|---|
committer | Stephan Hoyer <shoyer@climate.com> | 2016-01-14 13:44:43 -0800 |
commit | 53ad26a84ac2aa6f5a37f09aa9feae5afed44f79 (patch) | |
tree | 856886f3b9d65fb6305f21f9d692cb0861b861cb /numpy/ma/tests/test_extras.py | |
parent | 8fa6e3bef26a6d4a2c92f2824129aa4409be2590 (diff) | |
download | numpy-53ad26a84ac2aa6f5a37f09aa9feae5afed44f79.tar.gz |
TST, ENH: make all comparisons with NaT false
Now, NaT compares like NaN:
- NaT != NaT -> True
- NaT == NaT (and all other comparisons) -> False
We discussed this on the mailing list back in October:
https://mail.scipy.org/pipermail/numpy-discussion/2015-October/073968.html
Diffstat (limited to 'numpy/ma/tests/test_extras.py')
-rw-r--r-- | numpy/ma/tests/test_extras.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/ma/tests/test_extras.py b/numpy/ma/tests/test_extras.py index 6138d0573..c2428fa10 100644 --- a/numpy/ma/tests/test_extras.py +++ b/numpy/ma/tests/test_extras.py @@ -154,7 +154,7 @@ class TestAverage(TestCase): ott = ott.reshape(2, 2) ott[:, 1] = masked assert_equal(average(ott, axis=0), [2.0, 0.0]) - assert_equal(average(ott, axis=1).mask[0], [True]) + assert_equal(average(ott, axis=1).mask[0], True) assert_equal([2., 0.], average(ott, axis=0)) result, wts = average(ott, axis=0, returned=1) assert_equal(wts, [1., 0.]) |