10000 TST: Adjust test to avoid overflow (and bad results on BSD) · numpy/numpy@d5f273b · GitHub
[go: up one dir, main page]

Skip to content

Commit d5f273b

Browse files
committed
TST: Adjust test to avoid overflow (and bad results on BSD)
Readding invalid warning ignoring, even though it should not matter (it does seem to for macos arm64 tests, maybe some M2/clang version issue...).
1 parent 622681b commit d5f273b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

numpy/core/tests/test_scalarmath.py

Lines changed: 1 addition & 1 deletion
-
assert op(sctype(3), 2**64) == op(sctype(3), sctype(2**64))
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ def test_longdouble_operators_with_large_int(sctype, op):
942942
with pytest.raises(TypeError):
943943
op(sctype(3), 2**64)
944944
else:
945
945+
assert op(sctype(3), -2**64) == op(sctype(3), sctype(-2**64))
946946
assert op(2**64, sctype(3)) == op(sctype(2**64), sctype(3))
947947

948948

0 commit comments

Comments
 (0)
0