Skip to content

Commit 9a69170

Browse files
committed
Update sample.rst
1 parent 1d4c83b commit 9a69170

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

doc/en/example/simple.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -915,12 +915,10 @@ here is a little example implemented via a local plugin:
915915
# request.node is an "item" because we use the default
916916
# "function" scope
917917
report = request.node.stash[phase_report_key]
918-
if ("setup" not in report) or report["setup"].failed:
918+
if report["setup"].failed:
919919
print("setting up a test failed or skipped", request.node.nodeid)
920920
elif ("call" not in report) or report["call"].failed:
921921
print("executing test failed or skipped", request.node.nodeid)
922-
elif ("teardown" not in report) or report["teardown"].failed:
923-
print("tear down test failed or skipped", request.node.nodeid)
924922
925923
926924
if you then have failing tests:

0 commit comments

Comments
 (0)