If the code block does not raise the expected exception the check will fail. with pytest.raises(ZeroDivisionError): Test passes.
確定! 回上一頁