terminal: remove confusing comment about `_tw` (#6763)

Ref: https://github.com/blueyed/pytest/commit/cf0cac3b7#r37373455
This commit is contained in:
Daniel Hahler 2020-02-19 20:35:50 +01:00 committed by GitHub
parent 7c09d88b72
commit 781a730bea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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)