Skip to content

Commit

Permalink
added test case in testing/python/approx.py based on test case provid…
Browse files Browse the repository at this point in the history
…ed by reporter in issue pytest-dev#12114
  • Loading branch information
poulami-sau committed Apr 22, 2024
1 parent 485e8ef commit 3989384
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions testing/python/approx.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,6 +778,7 @@ def __array__(self, dtype=None, copy=None):

vec1 = ImplicitArray([1.0, 2.0, 3.0])
vec2 = ImplicitArray([1.0, 2.0, 4.0])
# see issue #12114 for test case
assert vec1 != approx(vec2)

def test_numpy_array_protocol(self):
Expand Down

0 comments on commit 3989384

Please sign in to comment.