(self)
| 386 | assert repr(approx(np_array)) == expected_repr_string |
| 387 | |
| 388 | def test_bool(self): |
| 389 | with pytest.raises(AssertionError) as err: |
| 390 | assert approx(1) |
| 391 | |
| 392 | assert err.match(r"approx\(\) is not supported in a boolean context") |
| 393 | |
| 394 | def test_mixed_sequence(self, assert_approx_raises_regex) -> None: |
| 395 | """Approx should work on sequences that also contain non-numbers (#13010).""" |