summaryrefslogtreecommitdiff
path: root/doc/en/writing_plugins.rst
diff options
context:
space:
mode:
authorBruno Oliveira <nicoddemus@gmail.com>2020-05-08 09:03:21 -0300
committerBruno Oliveira <nicoddemus@gmail.com>2020-05-08 09:03:21 -0300
commite6151cd8d0130cf91fe1fd888d1c571e6d561ccf (patch)
treefaeef6af775b72ba20a8466bd4b8256e44c18e06 /doc/en/writing_plugins.rst
parent5dd987e10fe4fb26bc20911d40ceb2fe89b4c7a2 (diff)
downloadpytest-e6151cd8d0130cf91fe1fd888d1c571e6d561ccf.tar.gz
Cherry-pick release 5.4.2
Diffstat (limited to 'doc/en/writing_plugins.rst')
-rw-r--r--doc/en/writing_plugins.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/en/writing_plugins.rst b/doc/en/writing_plugins.rst
index 87d81edb0..5ee634d57 100644
--- a/doc/en/writing_plugins.rst
+++ b/doc/en/writing_plugins.rst
@@ -443,9 +443,9 @@ additionally it is possible to copy examples for an example folder before runnin
testdir.copy_example("test_example.py")
test_example.py::test_plugin
- $PYTHON_PREFIX/lib/python3.8/site-packages/_pytest/terminal.py:287: PytestDeprecationWarning: TerminalReporter.writer attribute is deprecated, use TerminalReporter._tw instead at your own risk.
+ $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.
- warnings.warn(
+ return getattr(object, name, default)
-- Docs: https://docs.pytest.org/en/latest/warnings.html
====================== 2 passed, 2 warnings in 0.12s =======================