(self, fpeerr, flop, sc1, sc2)
| 637 | "Type %s raised wrong fpe error '%s'." % (ftype, exc)) |
| 638 | |
| 639 | def assert_op_raises_fpe(self, fpeerr, flop, sc1, sc2): |
| 640 | # Check that fpe exception is raised. |
| 641 | # |
| 642 | # Given a floating operation `flop` and two scalar values, check that |
| 643 | # the operation raises the floating point exception specified by |
| 644 | # `fpeerr`. Tests all variants with 0-d array scalars as well. |
| 645 | |
| 646 | self.assert_raises_fpe(fpeerr, flop, sc1, sc2) |
| 647 | self.assert_raises_fpe(fpeerr, flop, sc1[()], sc2) |
| 648 | self.assert_raises_fpe(fpeerr, flop, sc1, sc2[()]) |
| 649 | self.assert_raises_fpe(fpeerr, flop, sc1[()], sc2[()]) |
| 650 | |
| 651 | # Test for all real and complex float types |
| 652 | @pytest.mark.skipif(IS_WASM, reason="no wasm fp exception support") |
nothing calls this directly
no test coverage detected