(self)
| 1322 | assert_raises(AssertionError, assert_allclose, a, b, equal_nan=False) |
| 1323 | |
| 1324 | def test_equal_nan_default(self): |
| 1325 | # Make sure equal_nan default behavior remains unchanged. (All |
| 1326 | # of these functions use assert_array_compare under the hood.) |
| 1327 | # None of these should raise. |
| 1328 | a = np.array([np.nan]) |
| 1329 | b = np.array([np.nan]) |
| 1330 | assert_array_equal(a, b) |
| 1331 | assert_array_almost_equal(a, b) |
| 1332 | assert_array_less(a, b) |
| 1333 | assert_allclose(a, b) |
| 1334 | |
| 1335 | def test_report_max_relative_error(self): |
| 1336 | a = np.array([0, 1]) |
nothing calls this directly
no test coverage detected