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
Copy file name to clipboardExpand all lines: doc/en/changelog.rst
+87Lines changed: 87 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,93 @@ with advance notice in the **Deprecations** section of releases.
28
28
29
29
.. towncrier release notes start
30
30
31
+
pytest 6.0.0 (2020-07-28)
32
+
=========================
33
+
34
+
(**Please see the full set of changes for this release also in the 6.0.0rc1 notes below**)
35
+
36
+
Breaking Changes
37
+
----------------
38
+
39
+
- `#5584 <https://github.com/pytest-dev/pytest/issues/5584>`_: **PytestDeprecationWarning are now errors by default.**
40
+
41
+
Following our plan to remove deprecated features with as little disruption as
42
+
possible, all warnings of type ``PytestDeprecationWarning`` now generate errors
43
+
instead of warning messages.
44
+
45
+
**The affected features will be effectively removed in pytest 6.1**, so please consult the
46
+
`Deprecations and Removals <https://docs.pytest.org/en/latest/deprecations.html>`__
47
+
section in the docs for directions on how to update existing code.
48
+
49
+
In the pytest ``6.0.X`` series, it is possible to change the errors back into warnings as a
50
+
stopgap measure by adding this to your ``pytest.ini`` file:
51
+
52
+
.. code-block:: ini
53
+
54
+
[pytest]
55
+
filterwarnings =
56
+
ignore::pytest.PytestDeprecationWarning
57
+
58
+
But this will stop working when pytest ``6.1`` is released.
59
+
60
+
**If you have concerns** about the removal of a specific feature, please add a
61
+
comment to `#5584 <https://github.com/pytest-dev/pytest/issues/5584>`__.
62
+
63
+
64
+
- `#7472 <https://github.com/pytest-dev/pytest/issues/7472>`_: The ``exec_()`` and ``is_true()`` methods of ``_pytest._code.Frame`` have been removed.
65
+
66
+
67
+
68
+
Features
69
+
--------
70
+
71
+
- `#7464 <https://github.com/pytest-dev/pytest/issues/7464>`_: Added support for :envvar:`NO_COLOR` and :envvar:`FORCE_COLOR` environment variables to control colored output.
72
+
73
+
74
+
75
+
Improvements
76
+
------------
77
+
78
+
- `#7467 <https://github.com/pytest-dev/pytest/issues/7467>`_: ``--log-file`` CLI option and ``log_file`` ini marker now create subdirectories if needed.
79
+
80
+
81
+
- `#7489 <https://github.com/pytest-dev/pytest/issues/7489>`_: The :func:`pytest.raises` function has a clearer error message when ``match`` equals the obtained string but is not a regex match. In this case it is suggested to escape the regex.
82
+
83
+
84
+
85
+
Bug Fixes
86
+
---------
87
+
88
+
- `#7392 <https://github.com/pytest-dev/pytest/issues/7392>`_: Fix the reported location of tests skipped with ``@pytest.mark.skip`` when ``--runxfail`` is used.
89
+
90
+
91
+
- `#7491 <https://github.com/pytest-dev/pytest/issues/7491>`_: :fixture:`tmpdir` and :fixture:`tmp_path` no longer raise an error if the lock to check for
92
+
stale temporary directories is not accessible.
93
+
94
+
95
+
- `#7517 <https://github.com/pytest-dev/pytest/issues/7517>`_: Preserve line endings when captured via ``capfd``.
96
+
97
+
98
+
- `#7534 <https://github.com/pytest-dev/pytest/issues/7534>`_: Restored the previous formatting of ``TracebackEntry.__str__`` which was changed by accident.
99
+
100
+
101
+
102
+
Improved Documentation
103
+
----------------------
104
+
105
+
- `#7422 <https://github.com/pytest-dev/pytest/issues/7422>`_: Clarified when the ``usefixtures`` mark can apply fixtures to test.
106
+
107
+
108
+
- `#7441 <https://github.com/pytest-dev/pytest/issues/7441>`_: Add a note about ``-q`` option used in getting started guide.
109
+
110
+
111
+
112
+
Trivial/Internal Changes
113
+
------------------------
114
+
115
+
- `#7389 <https://github.com/pytest-dev/pytest/issues/7389>`_: Fixture scope ``package`` is no longer considered experimental.
Copy file name to clipboardExpand all lines: doc/en/writing_plugins.rst
+1-6Lines changed: 1 addition & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -442,13 +442,8 @@ additionally it is possible to copy examples for an example folder before runnin
442
442
$REGENDOC_TMPDIR/test_example.py:4: PytestExperimentalApiWarning: testdir.copy_example is an experimental api that may change over time
443
443
testdir.copy_example("test_example.py")
444
444
445
-
test_example.py::test_plugin
446
-
$PYTHON_PREFIX/lib/python3.7/site-packages/_pytest/compat.py:340: PytestDeprecationWarning: The TerminalReporter.writer attribute is deprecated, use TerminalReporter._tw instead at your own risk.
447
-
See https://docs.pytest.org/en/stable/deprecations.html#terminalreporter-writer for more information.
0 commit comments