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
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -173,6 +173,12 @@ Deprecations
173
173
This was changed for consistency with :func:`pytest.mark.skip <pytest.mark.skip>` and :func:`pytest.mark.xfail <pytest.mark.xfail>` which both accept
174
174
``reason`` as an argument.
175
175
176
+
- `#8174 <https://github.com/pytest-dev/pytest/issues/8174>`_: The following changes have been made to types reachable through :attr:`pytest.ExceptionInfo.traceback`:
177
+
178
+
- The ``path`` property of ``_pytest.code.Code`` returns ``Path`` instead of ``py.path.local``.
179
+
- The ``path`` property of ``_pytest.code.TracebackEntry`` returns ``Path`` instead of ``py.path.local``.
180
+
181
+
There was no deprecation period for this change (sorry!).
176
182
177
183
178
184
Features
@@ -477,6 +483,7 @@ Trivial/Internal Changes
477
483
- The ``path`` property of ``_pytest.code.TracebackEntry`` returns ``Path`` instead of ``py.path.local``.
478
484
- The ``_pytest.code.getfslineno()`` function returns ``Path`` instead of ``py.path.local``.
479
485
- The ``_pytest.python.path_matches_patterns()`` function takes ``Path`` instead of ``py.path.local``.
486
+
- The ``_pytest._code.Traceback.cut()`` function accepts any ``os.PathLike[str]``, not just ``py.path.local``.
480
487
481
488
482
489
- `#8248 <https://github.com/pytest-dev/pytest/issues/8248>`_: Internal Restructure: let ``python.PyObjMixin`` inherit from ``nodes.Node`` to carry over typing information.
0 commit comments