Fixes capfd so data is available after teardown.
This commit is contained in:
parent
28aff051ab
commit
273670b2a2
|
@ -188,7 +188,6 @@ class CaptureManager(object):
|
||||||
def pytest_runtest_teardown(self, item):
|
def pytest_runtest_teardown(self, item):
|
||||||
self._current_item = item
|
self._current_item = item
|
||||||
self.resume_global_capture()
|
self.resume_global_capture()
|
||||||
self.activate_fixture(item)
|
|
||||||
yield
|
yield
|
||||||
self.suspend_capture_item(item, "teardown")
|
self.suspend_capture_item(item, "teardown")
|
||||||
self._current_item = None
|
self._current_item = None
|
||||||
|
|
Loading…
Reference in New Issue