Skipping an exception in all Python tests, pytest.raises(Exceptiontype, Foo()) msg = "Ignore broken Last.fm API: " + str(e) print(msg) pytest.skip(msg) ...
確定! 回上一頁