Skip to content

Commit 780908a

Browse files
committed
Make test stricter
1 parent f1487d4 commit 780908a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

numexpr/tests/test_numexpr.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,14 @@ def test_maximum_minimum(self):
493493
def test_addmult_booleans(self):
494494
x = np.asarray([0, 1, 0, 0, 1], dtype=bool)
495495
y = x[::-1]
496-
assert_array_equal(evaluate("x * y"), x * y)
497-
assert_array_equal(evaluate("x + y"), x + y)
496+
res_ne = evaluate("x * y")
497+
res_np = x * y
498+
assert_array_equal(res_ne, res_np)
499+
assert res_ne.dtype == res_np.dtype
500+
res_ne = evaluate("x + y")
501+
res_np = x + y
502+
assert_array_equal(res_ne, res_np)
503+
assert res_ne.dtype == res_np.dtype
498504

499505
def test_sign_round(self):
500506
for dtype in [float, double, np.int32, np.int64, complex]:

0 commit comments

Comments
 (0)