Skip to content

test_iop on arithmetic operators (test_special_cases.py) #130

Description

@simonetgordon

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 😊

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions