异常断言# 异常断言def test_zero_division(): with pytest.raises(ZeroDivisionError) as exceptionInfo: 100 / 0 # 断言异常类型assert ...
確定! 回上一頁