Skip to content

Commit ea65ea8

Browse files
authored
Merge pull request #7717 from bluetech/backport-7614
[6.0.x] Properly remove log_print
2 parents f4f30d7 + e63fac3 commit ea65ea8

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
@@ -1473,20 +1473,6 @@ passed multiple times. The expected format is ``name=value``. For example::
14731473
For more information, see :ref:`logging`.
14741474

14751475

1476-
.. confval:: log_print
1477-
1478-
1479-
1480-
If set to ``False``, will disable displaying captured logging messages for failed tests.
1481-
1482-
.. code-block:: ini
1483-
1484-
[pytest]
1485-
log_print = False
1486-
1487-
For more information, see :ref:`logging`.
1488-
1489-
14901476
.. confval:: markers
14911477

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

0 commit comments

Comments
 (0)