summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_index_tricks.py
diff options
context:
space:
mode:
authorCameron Blocker <cameronjblocker@gmail.com>2020-07-12 14:46:11 -0400
committerCameron Blocker <cameronjblocker@gmail.com>2020-07-12 14:46:11 -0400
commit5d1fbf4df4233d38844acc33aa3116fd19729d6e (patch)
tree3373c6f9512b6156074f151d88557e0effb466ed /numpy/lib/tests/test_index_tricks.py
parent1cdc9a8f72e41c21c44187701d74133d8ee58412 (diff)
downloadnumpy-5d1fbf4df4233d38844acc33aa3116fd19729d6e.tar.gz
TST: fixed dtype check error from code review
Diffstat (limited to 'numpy/lib/tests/test_index_tricks.py')
-rw-r--r--numpy/lib/tests/test_index_tricks.py4
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):