Skip to content

Commit c0e7adc

Browse files
committed
MAINT: test equality always
1 parent cf28fa8 commit c0e7adc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scipy_doctest/impl.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,12 @@ def _do_check(self, want, got, strict_check):
391391
got_dtype = np.asarray(got).dtype
392392
if want_dtype != got_dtype:
393393
return False
394-
else:
395-
try:
396-
if want == got:
397-
return True
398-
except Exception:
399-
pass
394+
395+
try:
396+
if want == got:
397+
return True
398+
except Exception:
399+
pass
400400

401401
with warnings.catch_warnings():
402402
# NumPy's ragged array deprecation of np.array([1, (2, 3)])

0 commit comments

Comments
 (0)