From 6c7ea274093807fb93f36a131f63b343782fb903 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 26 Aug 2018 16:51:12 -0700 Subject: [PATCH] Fix pytest integration for pytest 3.7.3 --- src/tox/_pytestplugin.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tox/_pytestplugin.py b/src/tox/_pytestplugin.py index 564d05050..321d511b8 100644 --- a/src/tox/_pytestplugin.py +++ b/src/tox/_pytestplugin.py @@ -106,8 +106,7 @@ def __init__(self, capfd, args): def __enter__(self): self._start = time.time() - # noinspection PyProtectedMember - self._capfd._start() + self._capfd.readouterr() return self def __exit__(self, exc_type, exc_val, exc_tb):