如果我们不知道预期异常的是什么,我们可以使用match 和raise 进行自定义异常。 给 pytest.raises() 函数传递一个关键字参数 match ,通过 match 设置的 ...
確定! 回上一頁