Skip to content

Commit 2850cc1

Browse files
committed
Fix
1 parent 1e74b36 commit 2850cc1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

xobjects/general.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@ def __call__(self, *args, **kwargs):
1818

1919

2020
def assert_allclose(a, b, rtol=0, atol=0, max_outliers=0):
21+
22+
try:
23+
if a == b: # if this passes we return without raising
24+
return
25+
except:
26+
pass
27+
2128
if hasattr(a, "get"):
2229
a = a.get()
2330
if hasattr(b, "get"):

0 commit comments

Comments
 (0)