From 95a62460aa0f1eb2937f12a4bddb255350e52051 Mon Sep 17 00:00:00 2001 From: Bruno Oliveira Date: Sat, 10 Jun 2017 01:33:12 -0300 Subject: [PATCH] Revert "Mark test as complete at teardown." This reverts commit 82b992a5fd4bca9a6eb215873ce22113d54da387. --- xdist/dsession.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdist/dsession.py b/xdist/dsession.py index 3377078..9ddbc2d 100644 --- a/xdist/dsession.py +++ b/xdist/dsession.py @@ -660,7 +660,7 @@ class DSession: If the node indicates it is finished with a test item, remove the item from the pending list in the scheduler. """ - if rep.when == "teardown" or (rep.when == "setup" and not rep.passed): + if rep.when == "call" or (rep.when == "setup" and not rep.passed): self.sched.mark_test_complete(node, rep.item_index, rep.duration) # self.report_line("testreport %s: %s" %(rep.id, rep.status)) rep.node = node