Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
pytest.approx abs/rel logic seems to be flipped on np.array() #3695
Hopefully, I'm not missing something obvious here.
Absolute and relative tolerance arguments or logic seem to get flipped when the comparison is against a np.array
Think I've tracked it down to this line.
GitMate.io thinks possibly related issues are #3593 (pytest.approx raises TypeError for 0-d numpy array), #3312 (pytest.approx doesn't support comparison between arrays and scalars), #1994 (Supporting arrays for approx), #3482 (Extend pytest.approx to handle strings. ), and #3164 (TypeError with pytest.approx on nested dictionaries).