Skip to content

Commit

Permalink
Fix test for Python 2
Browse files Browse the repository at this point in the history
  • Loading branch information
levitsky committed Jul 9, 2024
1 parent f90ca67 commit ab0e9ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# updated to avoid calling np.allclose: since numpy 2.0 this results in a RecursionError
class ComparableArray(np.ndarray):
def __new__(cls, *args, **kwargs):
inst = super().__new__(cls, *args, **kwargs)
inst = super(ComparableArray, cls).__new__(cls, *args, **kwargs)
inst._atol = kwargs.pop('atol', 1e-8)
inst._rtol = kwargs.pop('rtol', 1e-5)
return inst
Expand Down

0 comments on commit ab0e9ad

Please sign in to comment.