Skip to content

Commit e63fac3

Browse files
nicoddemusbluetech
authored andcommitted
Merge pull request #7614 from The-Compiler/log-print
Properly remove log_print (cherry picked from commit d688fef)
1 parent e9d18bd commit e63fac3

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

14681468

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

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

0 commit comments

Comments
 (0)