From 9a69170ac73c405f37ad0e55741e48d5ad5b52e2 Mon Sep 17 00:00:00 2001 From: Yusuke Kadowaki Date: Mon, 28 Nov 2022 00:22:10 +0900 Subject: [PATCH] Update sample.rst --- doc/en/example/simple.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/doc/en/example/simple.rst b/doc/en/example/simple.rst index e2f06cc5c..a528e50ef 100644 --- a/doc/en/example/simple.rst +++ b/doc/en/example/simple.rst @@ -915,12 +915,10 @@ here is a little example implemented via a local plugin: # request.node is an "item" because we use the default # "function" scope report = request.node.stash[phase_report_key] - if ("setup" not in report) or report["setup"].failed: + if report["setup"].failed: print("setting up a test failed or skipped", request.node.nodeid) elif ("call" not in report) or report["call"].failed: print("executing test failed or skipped", request.node.nodeid) - elif ("teardown" not in report) or report["teardown"].failed: - print("tear down test failed or skipped", request.node.nodeid) if you then have failing tests: