We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3538e4a commit 544c8d0Copy full SHA for 544c8d0
numexpr/tests/test_numexpr.py
@@ -492,7 +492,8 @@ def test_sign(self):
492
x = arange(10, dtype=dtype)
493
y = 2 * arange(10, dtype=dtype)[::-1]
494
r = x-y
495
- r[-1] = np.nan if not np.issubdtype(dtype, int) else -2
+ if not np.issubdtype(dtype, int):
496
+ r[-1] = np.nan
497
assert_array_equal(evaluate("sign(r)"), sign(r))
498
499
def test_rational_expr(self):
0 commit comments