(op_fun: Any)
| 460 | ], |
| 461 | ) |
| 462 | def test_float_div_zero(op_fun: Any): |
| 463 | pairs = np.array( |
| 464 | [ |
| 465 | [1, 0], |
| 466 | [10000, 0], |
| 467 | [-1, 0], |
| 468 | [0, 0], |
| 469 | [-9829480, 0], |
| 470 | [12.452, 0.0], |
| 471 | [0.001, 0.0], |
| 472 | ], |
| 473 | dtype=np.float64, |
| 474 | ).reshape(-1, 2, 1) |
| 475 | for pair in pairs: |
| 476 | df = pd.DataFrame({"a": pair[0], "b": pair[1]}) |
| 477 | table = table_from_pandas(df) |
| 478 | table.select(c=op_fun(pw.this["a"], pw.this["b"])) |
| 479 | |
| 480 | with pytest.raises(ZeroDivisionError): |
| 481 | run_all() |
| 482 | |
| 483 | |
| 484 | @pytest.mark.parametrize("reverse", [True, False]) |
nothing calls this directly
no test coverage detected