You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[BUG] testdir fixture usage seems to cause PytestDeprecationWarning: The TerminalReporter.writer attribute is deprecated, use TerminalReporter._tw instead at your own risk.#7328
Closed
webknjaz opened this issue
Jun 5, 2020
· 1 comment
$PYTHON_PREFIX/lib/python3.8/site-packages/_pytest/compat.py:333: PytestDeprecationWarning: The TerminalReporter.writer attribute is deprecated, use TerminalReporter._tw instead at your own risk.
See https://docs.pytest.org/en/latest/deprecations.html#terminalreporter-writer for more information.
returngetattr(object, name, default)
While implementing pytest-dev/pytest-forked#34, I've faced this, when writing tests for the plugin:
It's funny that the docs even showcase this exact warning in the test report snippet in this section: https://docs.pytest.org/en/stable/writing_plugins.html#testing-plugins.
N.B. I'm currently unable to determine what exactly triggers this because of the dynamic
getattr()
.The text was updated successfully, but these errors were encountered: