Deprecate TerminalReporter._tw

Fix #2803
This commit is contained in:
Bruno Oliveira
2017-09-27 16:00:55 -03:00
parent de0d19ca09
commit 3b30c93f73
7 changed files with 71 additions and 56 deletions

View File

@@ -83,7 +83,7 @@ def _enter_pdb(node, excinfo, rep):
# XXX we re-use the TerminalReporter's terminalwriter
# because this seems to avoid some encoding related troubles
# for not completely clear reasons.
tw = node.config.pluginmanager.getplugin("terminalreporter")._tw
tw = node.config.pluginmanager.getplugin("terminalreporter").writer
tw.line()
tw.sep(">", "traceback")
rep.toterminal(tw)