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
+16-16
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ New features
39
39
40
40
- `#12231 <https://github.com/pytest-dev/pytest/issues/12231>`_: Added `--xfail-tb` flag, which turns on traceback output for XFAIL results.
41
41
42
-
* If the `--xfail-tb` flag is not sent, tracebacks for XFAIL results are NOT shown.
42
+
* If the `--xfail-tb` flag is not given, tracebacks for XFAIL results are NOT shown.
43
43
* The style of traceback for XFAIL is set with `--tb`, and can be `auto|long|short|line|native|no`.
44
44
* Note: Even if you have `--xfail-tb` set, you won't see them if `--tb=no`.
45
45
@@ -60,10 +60,10 @@ New features
60
60
-- by :user:`lovetheguitar`
61
61
62
62
63
-
- `#12567 <https://github.com/pytest-dev/pytest/issues/12567>`_: Added ``--no-fold-skipped`` command line option
63
+
- `#12567 <https://github.com/pytest-dev/pytest/issues/12567>`_: Added ``--no-fold-skipped`` command line option.
64
64
65
65
If this option is set, then skipped tests in short summary are no longer grouped
66
-
by reason but all tests are printed individually with correct nodeid in the same
66
+
by reason but all tests are printed individually with their nodeid in the same
67
67
way as other statuses.
68
68
69
69
-- by :user:`pbrezina`
@@ -73,18 +73,13 @@ New features
73
73
Improvements in existing functionality
74
74
--------------------------------------
75
75
76
-
- `#12467 <https://github.com/pytest-dev/pytest/issues/12467>`_: Migrated all internal type-annotations to the python3.10+ style by using the `annotations` future import.
77
-
78
-
-- by :user:`RonnyPfannschmidt`
79
-
80
-
81
76
- `#12469 <https://github.com/pytest-dev/pytest/issues/12469>`_: The console output now uses the "third-party plugins" terminology,
82
77
replacing the previously established but confusing and outdated
83
78
reference to :std:doc:`setuptools <setuptools:index>`
84
79
-- by :user:`webknjaz`.
85
80
86
81
87
-
- `#12544 <https://github.com/pytest-dev/pytest/issues/12544>`_, `#12545 <https://github.com/pytest-dev/pytest/issues/12545>`_: The ``_in_venv()`` function now detects Python virtual environments by
82
+
- `#12544 <https://github.com/pytest-dev/pytest/issues/12544>`_, `#12545 <https://github.com/pytest-dev/pytest/issues/12545>`_: Python virtual environment detection was improved by
88
83
checking for a :file:`pyvenv.cfg` file, ensuring reliable detection on
89
84
various platforms -- by :user:`zachsnickers`.
90
85
@@ -139,7 +134,7 @@ Improvements in existing functionality
139
134
Bug fixes
140
135
---------
141
136
142
-
- `#11706 <https://github.com/pytest-dev/pytest/issues/11706>`_: Fix reporting of teardown errors in higher-scoped fixtures when using `--maxfail` or `--stepwise`.
137
+
- `#11706 <https://github.com/pytest-dev/pytest/issues/11706>`_: Fixed reporting of teardown errors in higher-scoped fixtures when using `--maxfail` or `--stepwise`.
143
138
144
139
Originally added in pytest 8.0.0, but reverted in 8.0.2 due to a regression in pytest-xdist.
145
140
This regression was fixed in pytest-xdist 3.6.1.
@@ -161,19 +156,19 @@ Bug fixes
161
156
instead of ``exc``.
162
157
163
158
164
-
- `#12275 <https://github.com/pytest-dev/pytest/issues/12275>`_: Fix collection error upon encountering an :mod:`abstract <abc>` class, including abstract `unittest.TestCase` subclasses.
159
+
- `#12275 <https://github.com/pytest-dev/pytest/issues/12275>`_: Fixed collection error upon encountering an :mod:`abstract <abc>` class, including abstract `unittest.TestCase` subclasses.
165
160
166
161
167
-
- `#12328 <https://github.com/pytest-dev/pytest/issues/12328>`_: Fix a regression in pytest 8.0.0 where package-scoped parameterized items were not correctly reordered to minimize setups/teardowns in some cases.
162
+
- `#12328 <https://github.com/pytest-dev/pytest/issues/12328>`_: Fixed a regression in pytest 8.0.0 where package-scoped parameterized items were not correctly reordered to minimize setups/teardowns in some cases.
168
163
169
164
170
-
- `#12424 <https://github.com/pytest-dev/pytest/issues/12424>`_: Fix crash with `assert testcase is not None` assertion failure when re-running unittest tests using plugins like pytest-rerunfailures. Regressed in 8.2.2.
165
+
- `#12424 <https://github.com/pytest-dev/pytest/issues/12424>`_: Fixed crash with `assert testcase is not None` assertion failure when re-running unittest tests using plugins like pytest-rerunfailures. Regressed in 8.2.2.
171
166
172
167
173
168
- `#12472 <https://github.com/pytest-dev/pytest/issues/12472>`_: Fixed a crash when returning category ``"error"`` or ``"failed"`` with a custom test status from :hook:`pytest_report_teststatus` hook -- :user:`pbrezina`.
174
169
175
170
176
-
- `#12505 <https://github.com/pytest-dev/pytest/issues/12505>`_: Improve handling of invalid regex patterns in :func:`pytest.raises(match=r'...') <pytest.raises>` by providing a clear error message.
171
+
- `#12505 <https://github.com/pytest-dev/pytest/issues/12505>`_: Improved handling of invalid regex patterns in :func:`pytest.raises(match=r'...') <pytest.raises>` by providing a clear error message.
177
172
178
173
179
174
- `#12580 <https://github.com/pytest-dev/pytest/issues/12580>`_: Fixed a crash when using the cache class on Windows and the cache directory was created concurrently.
@@ -202,17 +197,22 @@ Improved documentation
202
197
203
198
204
199
- `#12577 <https://github.com/pytest-dev/pytest/issues/12577>`_: `CI` and `BUILD_NUMBER` environment variables role is discribed in
205
-
the reference doc. They now also appears when doing `pytest -h`
200
+
the reference doc. They now also appear when doing `pytest -h`
206
201
-- by :user:`MarcBresson`.
207
202
208
203
209
204
210
205
Contributor-facing changes
211
206
--------------------------
212
207
208
+
- `#12467 <https://github.com/pytest-dev/pytest/issues/12467>`_: Migrated all internal type-annotations to the python3.10+ style by using the `annotations` future import.
209
+
210
+
-- by :user:`RonnyPfannschmidt`
211
+
212
+
213
213
- `#11771 <https://github.com/pytest-dev/pytest/issues/11771>`_, `#12557 <https://github.com/pytest-dev/pytest/issues/12557>`_: The PyPy runtime version has been updated to 3.9 from 3.8 that introduced
214
214
a flaky bug at the garbage collector which was not expected to fix there
0 commit comments