Skip to content

Commit 544c8d0

Browse files
committed
Fix test for stricter Windows
1 parent 3538e4a commit 544c8d0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

numexpr/tests/test_numexpr.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,8 @@ def test_sign(self):
492492
x = arange(10, dtype=dtype)
493493
y = 2 * arange(10, dtype=dtype)[::-1]
494494
r = x-y
495-
r[-1] = np.nan if not np.issubdtype(dtype, int) else -2
495+
if not np.issubdtype(dtype, int):
496+
r[-1] = np.nan
496497
assert_array_equal(evaluate("sign(r)"), sign(r))
497498

498499
def test_rational_expr(self):

0 commit comments

Comments
 (0)