(strmatch, callable, *args, **kwargs)
| 8 | |
| 9 | |
| 10 | def assert_raises_fpe(strmatch, callable, *args, **kwargs): |
| 11 | try: |
| 12 | callable(*args, **kwargs) |
| 13 | except FloatingPointError as exc: |
| 14 | assert_(str(exc).find(strmatch) >= 0, |
| 15 | f"Did not raise floating point {strmatch} error") |
| 16 | else: |
| 17 | assert_(False, |
| 18 | f"Did not raise floating point {strmatch} error") |
| 19 | |
| 20 | class TestHalf: |
| 21 | def _create_arrays_all(self): |
no test coverage detected
searching dependent graphs…