From f673c0771908c81b52f4368350e165d2336a0153 Mon Sep 17 00:00:00 2001 From: poulami-sau <109125687+poulami-sau@users.noreply.github.com> Date: Sun, 21 Apr 2024 21:57:52 -0400 Subject: [PATCH] added print statement in test case --- testing/python/approx.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/python/approx.py b/testing/python/approx.py index 875c89891..91cb666c5 100644 --- a/testing/python/approx.py +++ b/testing/python/approx.py @@ -773,10 +773,12 @@ class TestApprox: self.vals = vals def __array__(self, dtype=None, copy=None): + print("called __array__ in ImplicitArray") return np.array(self.vals) 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):