MCPcopy Create free account
hub / github.com/numpy/numpy / _do_check

Method _do_check

tools/refguide_check.py:759–767  ·  view source on GitHub ↗
(self, want, got)

Source from the content-addressed store, hash-verified

757 return False
758
759 def _do_check(self, want, got):
760 # This should be done exactly as written to correctly handle all of
761 # numpy-comparable objects, strings, and heterogeneous tuples
762 try:
763 if want == got:
764 return True
765 except Exception:
766 pass
767 return np.allclose(want, got, atol=self.atol, rtol=self.rtol)
768
769
770def _run_doctests(tests, full_name, verbose, doctest_warnings):

Callers 1

check_outputMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected