你可以通过设置pytestmark变量应用于模块中的所有测试:. # turns all warnings into errors for this module pytestmark = pytest.mark.filterwarnings("error") ...
確定! 回上一頁