Skip to content

Commit e576b52

Browse files
Merge branch 'main' into fix-known-args-namespace-duplicate
2 parents 27c1110 + f84c023 commit e576b52

16 files changed

Lines changed: 240 additions & 109 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
tox -e generate-gh-release-notes -- "$VERSION" gh-release-notes.md
6565
6666
- name: Upload release notes
67-
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0
67+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
6868
with:
6969
name: release-notes
7070
path: gh-release-notes.md
@@ -88,7 +88,7 @@ jobs:
8888
path: dist
8989

9090
- name: Publish package to PyPI
91-
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e
91+
uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b
9292
with:
9393
attestations: true
9494

.github/workflows/update-plugin-list.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
python-version: "3.13"
3232

3333
- name: requests-cache
34-
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4
34+
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
3535
with:
3636
path: ~/.cache/pytest-plugin-list/
3737
key: plugins-http-cache-${{ github.run_id }} # Can use time based key as well
@@ -47,7 +47,7 @@ jobs:
4747

4848
- name: Create Pull Request
4949
id: pr
50-
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0
50+
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1
5151
with:
5252
commit-message: '[automated] Update plugin list'
5353
author: 'pytest bot <pytestbot@users.noreply.github.com>'

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
minimum_pre_commit_version: "4.4.0"
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: "v0.15.10"
4+
rev: "v0.15.11"
55
hooks:
66
- id: ruff-check
77
args: ["--fix"]

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ Fraser Stark
180180
Freya Bruhin
181181
Gabriel Landau
182182
Gabriel Reis
183+
Garion Milazzo
183184
Garvit Shubham
184185
Gene Wood
185186
George Kussumoto

changelog/14234.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Allow :ref:`pytest.HIDDEN_PARAM <hidden-param>` in :ref:`@pytest.mark.parametrize(ids=...) <pytest.mark.parametrize ref>` typing.

changelog/14381.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed ``-V`` (short form of ``--version``) to properly display the current version.

changelog/14389.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Improved :func:`pytest.raises(..., match=...) <pytest.raises>` failures to suppress the mismatched exception as a cause of the resulting ``AssertionError``.

changelog/14392.bugfix.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed a bug in :func:`pytest.raises(match=...) <pytest.raises>` "fully escaped" detection, causing the regex diff display to be shown in some instances when the raw string diff display should be shown instead.

doc/en/reference/plugin_list.rst

Lines changed: 165 additions & 93 deletions
Large diffs are not rendered by default.

src/_pytest/config/__init__.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,12 @@ def main(
184184
185185
:returns: An exit code.
186186
"""
187-
# Handle a single `--version` argument early to avoid starting up the entire pytest infrastructure.
187+
# Handle a single `--version`/`-V` argument early to avoid starting up the entire pytest infrastructure.
188188
new_args = sys.argv[1:] if args is None else args
189-
if isinstance(new_args, Sequence) and new_args.count("--version") == 1:
189+
if (
190+
isinstance(new_args, Sequence)
191+
and (new_args.count("--version") + new_args.count("-V")) == 1
192+
):
190193
sys.stdout.write(f"pytest {__version__}\n")
191194
return ExitCode.OK
192195

0 commit comments

Comments
 (0)