Closed
Description
For numpy, I only have test_iop
failures for arithmetic operator methods (imul
, iadd
, ifloordiv
, etc.).
Take ifloordiv
, for example. I obtain the following test error message:
E AssertionError: out=-1.1754943508222875e-38, but should be +0 [__ifloordiv__()]
E condition: isfinite(x1_i) and x1_i < 0 and x2_i is -infinity -> +0
E x1=-1.1754943508222875e-38, x2=-inf
However, when I run the corresponding case on a script, I obtain the expected result:
x1=-1.1754943508222875e-38
x2=-float('inf')
x1 //= x2
print(x1) # 0.0
Any insight would be much appreciated 😊