MCPcopy Index your code
hub / github.com/pathwaycom/pathway / test_int_div_zero

Function test_int_div_zero

python/pathway/tests/test_operators.py:190–200  ·  view source on GitHub ↗
(op_fun: Any)

Source from the content-addressed store, hash-verified

188 ],
189)
190def 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(

Callers

nothing calls this directly

Calls 3

table_from_pandasFunction · 0.90
run_allFunction · 0.90
selectMethod · 0.45

Tested by

no test coverage detected