Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
c93130c
add RaisesGroup & Matcher
jakkdl Feb 4, 2025
4737c8c
add AbstractMatcher support to xfail
jakkdl Feb 4, 2025
e1e1874
rename AbstractMatcher -> AbstractRaises, Matcher->RaisesExc. Add doc…
jakkdl Feb 6, 2025
e090517
Merge branch 'main' into raisesgroup
jakkdl Feb 6, 2025
e73c411
fix test on py<311
jakkdl Feb 6, 2025
c011e9b
fix test, fix references in docstrings
jakkdl Feb 6, 2025
426fe19
Apply suggestions from code review
jakkdl Feb 18, 2025
7f9966b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 18, 2025
0cdc5da
Update src/_pytest/_raises_group.py
jakkdl Feb 18, 2025
cb30674
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Feb 18, 2025
9714dc0
doc improvements after review
jakkdl Feb 18, 2025
ad6542e
Merge remote-tracking branch 'origin/main' into raisesgroup
jakkdl Feb 18, 2025
4d2c709
fix imports after file rename
jakkdl Feb 18, 2025
9e38a9e
fix another import
jakkdl Feb 18, 2025
ff9dd38
sed s/RaisesGroups/RaisesGroup
jakkdl Feb 18, 2025
2c8cd64
make pytest.raises use RaisesExc... which made me notice about a mill…
jakkdl Feb 20, 2025
09d06fe
fix tests
jakkdl Feb 20, 2025
753df94
harmonize stringify_exception, various comments
jakkdl Feb 21, 2025
4f682c1
fix rtd
jakkdl Feb 24, 2025
edfcc86
Merge branch 'main' into raisesgroup
jakkdl Feb 24, 2025
309030c
fix import loop
jakkdl Feb 24, 2025
4e97652
remove raises_group alias, doc fixes after review
jakkdl Mar 3, 2025
5186f36
Merge remote-tracking branch 'origin/main' into raisesgroup
jakkdl Mar 3, 2025
9163167
Merge remote-tracking branch 'origin/main' into raisesgroup
jakkdl Mar 5, 2025
d37e6d6
Update 11538.feature.rst
jakkdl Mar 5, 2025
4c6ded7
docs fixes after removing the raises_group alias.
jakkdl Mar 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changelog/11671.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added `RaisesGroup` (also available as `raises_group`) and `Matcher`, as an equivalent to `raises` for expecting `ExceptionGroup`. It includes the ability to specity multiple different expected exceptions, the structure of nested exception groups, and/or closely emulating `except_star`.
Loading