Skip to content

Commit 8930c3b

Browse files
committed
Remove faulty test_remainder test logic
1 parent f76a75c commit 8930c3b

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

xptests/test_elementwise_functions.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,17 +1306,10 @@ def test_remainder(
13061306
assume(right != 0)
13071307
else:
13081308
assume(not ah.any(right == 0))
1309-
# TODO: rework same sign testing below to remove this
1310-
if not right_is_scalar:
1311-
assume(len(left.shape) <= len(right.shape))
13121309

1313-
res = func(left, right)
1310+
func(left, right)
13141311

1315-
if not right_is_scalar:
1316-
# res and x2 should have the same sign.
1317-
# ah.assert_same_sign returns False for nans
1318-
not_nan = ah.logical_not(ah.logical_or(ah.isnan(res), ah.isnan(left)))
1319-
ah.assert_same_sign(res[not_nan], right[not_nan])
1312+
# TODO: test results
13201313

13211314

13221315
@given(xps.arrays(dtype=xps.numeric_dtypes(), shape=hh.shapes()))

0 commit comments

Comments
 (0)