From 781a730bea84b8394b930bc664427ab4dc7640cb Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 19 Feb 2020 20:35:50 +0100 Subject: [PATCH] terminal: remove confusing comment about `_tw` (#6763) Ref: https://github.com/blueyed/pytest/commit/cf0cac3b7#r37373455 --- src/_pytest/terminal.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/_pytest/terminal.py b/src/_pytest/terminal.py index 078f9ee8c..4be5b8513 100644 --- a/src/_pytest/terminal.py +++ b/src/_pytest/terminal.py @@ -270,9 +270,7 @@ class TerminalReporter: self.startdir = config.invocation_dir if file is None: file = sys.stdout - self._tw = _pytest.config.create_terminal_writer(config, file) - # self.writer will be deprecated in pytest-3.4 - self.writer = self._tw + self.writer = self._tw = _pytest.config.create_terminal_writer(config, file) self._screen_width = self._tw.fullwidth self.currentfspath = None # type: Any self.reportchars = getreportopt(config)