diff options
Diffstat (limited to 'numpy/lib/tests/test_index_tricks.py')
-rw-r--r-- | numpy/lib/tests/test_index_tricks.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/tests/test_index_tricks.py b/numpy/lib/tests/test_index_tricks.py index b71356219..4f933a683 100644 --- a/numpy/lib/tests/test_index_tricks.py +++ b/numpy/lib/tests/test_index_tricks.py @@ -253,13 +253,13 @@ class TestGrid: # regression test for #16466 grid64 = mgrid[0.1:0.33:0.1, ] grid32 = mgrid[np.float32(0.1):np.float32(0.33):np.float32(0.1), ] - assert_(not isinstance(grid32.dtype, int)) + assert_(grid32.dtype == np.float64) assert_array_almost_equal(grid64, grid32) # different code path for single slice grid64 = mgrid[0.1:0.33:0.1] grid32 = mgrid[np.float32(0.1):np.float32(0.33):np.float32(0.1)] - assert_(not isinstance(grid32.dtype, int)) + assert_(grid32.dtype == np.float64) assert_array_almost_equal(grid64, grid32) def test_accepts_npcomplexfloating(self): |