(self, want, got)
| 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 | |
| 770 | def _run_doctests(tests, full_name, verbose, doctest_warnings): |