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
Added warning when :confval:`testpaths` is set, but paths are not found by glob. In this case, pytest will fall back to searching from the current directory.
When `--confcutdir` is not specified, and there is no config file present, the conftest cutoff directory (`--confcutdir`) is now set to the :ref:`rootdir`.
2
+
Previously in such cases, `conftest.py` files would be probed all the way to the root directory of the filesystem.
3
+
If you are badly affected by this change, consider adding an empty config file to your desired cutoff directory, or explicitly set `--confcutdir`.
Fixed traceback entries hidden with ``__tracebackhide__ = True`` still being shown for chained exceptions (parts after "... the above exception ..." message).
Copy file name to clipboardExpand all lines: doc/en/changelog.rst
+26-2
Original file line number
Diff line number
Diff line change
@@ -28,6 +28,30 @@ with advance notice in the **Deprecations** section of releases.
28
28
29
29
.. towncrier release notes start
30
30
31
+
pytest 7.3.2 (2023-06-10)
32
+
=========================
33
+
34
+
Bug Fixes
35
+
---------
36
+
37
+
- `#10169 <https://github.com/pytest-dev/pytest/issues/10169>`_: Fix bug where very long option names could cause pytest to break with ``OSError: [Errno 36] File name too long`` on some systems.
38
+
39
+
40
+
- `#10894 <https://github.com/pytest-dev/pytest/issues/10894>`_: Support for Python 3.12 (beta at the time of writing).
41
+
42
+
43
+
- `#10987 <https://github.com/pytest-dev/pytest/issues/10987>`_: :confval:`testpaths` is now honored to load root ``conftests``.
44
+
45
+
46
+
- `#10999 <https://github.com/pytest-dev/pytest/issues/10999>`_: The `monkeypatch` `setitem`/`delitem` type annotations now allow `TypedDict` arguments.
47
+
48
+
49
+
- `#11028 <https://github.com/pytest-dev/pytest/issues/11028>`_: Fixed bug in assertion rewriting where a variable assigned with the walrus operator could not be used later in a function call.
50
+
51
+
52
+
- `#11054 <https://github.com/pytest-dev/pytest/issues/11054>`_: Fixed ``--last-failed``'s "(skipped N files)" functionality for files inside of packages (directories with `__init__.py` files).
53
+
54
+
31
55
pytest 7.3.1 (2023-04-14)
32
56
=========================
33
57
@@ -567,7 +591,7 @@ Breaking Changes
567
591
- `#7259 <https://github.com/pytest-dev/pytest/issues/7259>`_: The :ref:`Node.reportinfo() <non-python tests>` function first return value type has been expanded from `py.path.local | str` to `os.PathLike[str] | str`.
568
592
569
593
Most plugins which refer to `reportinfo()` only define it as part of a custom :class:`pytest.Item` implementation.
570
-
Since `py.path.local` is a `os.PathLike[str]`, these plugins are unaffacted.
594
+
Since `py.path.local` is an `os.PathLike[str]`, these plugins are unaffacted.
571
595
572
596
Plugins and users which call `reportinfo()`, use the first return value and interact with it as a `py.path.local`, would need to adjust by calling `py.path.local(fspath)`.
573
597
Although preferably, avoid the legacy `py.path.local` and use `pathlib.Path`, or use `item.location` or `item.path`, instead.
@@ -4067,7 +4091,7 @@ Removals
4067
4091
See our :ref:`docs <calling fixtures directly deprecated>` on information on how to update your code.
4068
4092
4069
4093
4070
-
- :issue:`4546`: Remove ``Node.get_marker(name)`` the return value was not usable for more than a existence check.
4094
+
- :issue:`4546`: Remove ``Node.get_marker(name)`` the return value was not usable for more than an existence check.
4071
4095
4072
4096
Use ``Node.get_closest_marker(name)`` as a replacement.
0 commit comments