import pytest. def test_zero_division():. with pytest.raises(ZeroDivisionError):. 1 / 0. and if you need to have access to the actual exception info you may ...
確定! 回上一頁