Pytest的简单学习记录. 1.1. 引发错误的方法. 1 使用断言assert 2 with pytest.raises('Error') 例如: with pytest.raises(TypeError) 如果正常的引发异常则通过, ...
確定! 回上一頁