Skip to content

Commit d688fef

Browse files
authored
Merge pull request #7614 from The-Compiler/log-print
Properly remove log_print
2 parents 0dd5e16 + 1c9b847 commit d688fef

File tree

3 files changed

+5
-18
lines changed

3 files changed

+5
-18
lines changed

doc/en/changelog.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,9 @@ Breaking Changes
212212

213213

214214
- `#7224 <https://github.com/pytest-dev/pytest/issues/7224>`_: The `item.catch_log_handler` and `item.catch_log_handlers` attributes, set by the
215-
logging plugin and never meant to be public , are no longer available.
215+
logging plugin and never meant to be public, are no longer available.
216216

217-
The deprecated ``--no-print-logs`` option is removed. Use ``--show-capture`` instead.
217+
The deprecated ``--no-print-logs`` option and ``log_print`` ini option are removed. Use ``--show-capture`` instead.
218218

219219

220220
- `#7226 <https://github.com/pytest-dev/pytest/issues/7226>`_: Removed the unused ``args`` parameter from ``pytest.Function.__init__``.

doc/en/deprecations.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,10 @@ a public API and may break in the future.
5151
.. versionremoved:: 6.0
5252

5353

54-
Option ``--no-print-logs`` is removed. If you used ``--no-print-logs``, please use ``--show-capture`` instead.
54+
The ``--no-print-logs`` option and ``log_print`` ini setting are removed. If
55+
you used them, please use ``--show-capture`` instead.
5556

56-
``--show-capture`` command-line option was added in ``pytest 3.5.0`` and allows to specify how to
57+
A ``--show-capture`` command-line option was added in ``pytest 3.5.0`` which allows to specify how to
5758
display captured output when tests fail: ``no``, ``stdout``, ``stderr``, ``log`` or ``all`` (the default).
5859

5960

doc/en/reference.rst

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1468,20 +1468,6 @@ passed multiple times. The expected format is ``name=value``. For example::
14681468
For more information, see :ref:`logging`.
14691469

14701470

1471-
.. confval:: log_print
1472-
1473-
1474-
1475-
If set to ``False``, will disable displaying captured logging messages for failed tests.
1476-
1477-
.. code-block:: ini
1478-
1479-
[pytest]
1480-
log_print = False
1481-
1482-
For more information, see :ref:`logging`.
1483-
1484-
14851471
.. confval:: markers
14861472

14871473
When the ``--strict-markers`` or ``--strict`` command-line arguments are used,

0 commit comments

Comments
 (0)