hypothesis-python/tests/ghostwriter/recorded/division_fuzz_error_handler.txt
raw| 1 | # This test code was written by the `hypothesis.extra.ghostwriter` module |
| 2 | # and is provided under the Creative Commons Zero public domain dedication. |
| 3 | |
| 4 | import test_expected_output |
| 5 | from hypothesis import given, reject, strategies as st |
| 6 | |
| 7 | |
| 8 | @given(a=st.integers(), b=st.integers()) |
| 9 | def test_fuzz_divide(a: int, b: int) -> None: |
| 10 | try: |
| 11 | test_expected_output.divide(a=a, b=b) |
| 12 | except ZeroDivisionError: |
| 13 | reject() |