From 273670b2a204f950df93d87baff26b04a47c0400 Mon Sep 17 00:00:00 2001 From: Tyler Richard Date: Wed, 20 Dec 2017 10:28:50 -0800 Subject: [PATCH] Fixes capfd so data is available after teardown. --- src/_pytest/capture.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/_pytest/capture.py b/src/_pytest/capture.py index c84ba825e..b2ab4e57a 100644 --- a/src/_pytest/capture.py +++ b/src/_pytest/capture.py @@ -188,7 +188,6 @@ class CaptureManager(object): def pytest_runtest_teardown(self, item): self._current_item = item self.resume_global_capture() - self.activate_fixture(item) yield self.suspend_capture_item(item, "teardown") self._current_item = None