diff options
author | Nathaniel J. Smith <njs@pobox.com> | 2015-12-08 19:10:38 -0800 |
---|---|---|
committer | Nathaniel J. Smith <njs@pobox.com> | 2015-12-08 19:40:22 -0800 |
commit | 9d11602007923310d996ebed636281afe940c783 (patch) | |
tree | 5bb29f080352e5b355a12f1346a7a1550108d5ce /numpy/lib/tests/test_nanfunctions.py | |
parent | dfdd1884591928e07231ec772a05a9ce490060b8 (diff) | |
download | numpy-9d11602007923310d996ebed636281afe940c783.tar.gz |
[TST] fix test_dtype_error to actually test what it's supposed to
Discovered while cleaning up uses of the silly aliases like
'np.object'.
Diffstat (limited to 'numpy/lib/tests/test_nanfunctions.py')
-rw-r--r-- | numpy/lib/tests/test_nanfunctions.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/numpy/lib/tests/test_nanfunctions.py b/numpy/lib/tests/test_nanfunctions.py index f418504c2..7a7b37b98 100644 --- a/numpy/lib/tests/test_nanfunctions.py +++ b/numpy/lib/tests/test_nanfunctions.py @@ -395,12 +395,12 @@ class TestNanFunctions_MeanVarStd(TestCase, SharedNanFunctionsTestsMixin): def test_dtype_error(self): for f in self.nanfuncs: - for dtype in [np.bool_, np.int_, np.object]: - assert_raises(TypeError, f, _ndat, axis=1, dtype=np.int) + for dtype in [np.bool_, np.int_, np.object_]: + assert_raises(TypeError, f, _ndat, axis=1, dtype=dtype) def test_out_dtype_error(self): for f in self.nanfuncs: - for dtype in [np.bool_, np.int_, np.object]: + for dtype in [np.bool_, np.int_, np.object_]: out = np.empty(_ndat.shape[0], dtype=dtype) assert_raises(TypeError, f, _ndat, axis=1, out=out) |