(op_fun: Any)
| 188 | ], |
| 189 | ) |
| 190 | def test_int_div_zero(op_fun: Any): |
| 191 | pairs = np.array([[1, 0], [10000, 0], [-1, 0], [0, 0], [-9829480, 0]]).reshape( |
| 192 | -1, 2, 1 |
| 193 | ) |
| 194 | for pair in pairs: |
| 195 | df = pd.DataFrame({"a": pair[0], "b": pair[1]}) |
| 196 | table = table_from_pandas(df) |
| 197 | table.select(c=op_fun(pw.this["a"], pw.this["b"])) |
| 198 | |
| 199 | with pytest.raises(ZeroDivisionError): |
| 200 | run_all() |
| 201 | |
| 202 | |
| 203 | @pytest.mark.parametrize( |
nothing calls this directly
no test coverage detected