-
-
Notifications
You must be signed in to change notification settings - Fork 393
Deprecate testing.RaisesGroup and testing.Matcher
#3337
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
A5rocks
merged 20 commits into
python-trio:main
from
Abduaziz-Projects:deprecate-raises-group
Dec 30, 2025
Merged
Changes from 13 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
5be7c99
chore: deprecate `RaisesGroup`
AbduazizZiyodov adae0e3
feat: deprecate `RaisesGroup` using `deprecate_attributes` utility
AbduazizZiyodov cf590c0
feat: deprecate `Matcher`
AbduazizZiyodov cc2e35a
feat: make `DeprecatedAttribute` as `final`
AbduazizZiyodov 1b0fa93
feat: supress warnings about deprecation warning on specific test cases
AbduazizZiyodov f0db1ff
fix: replace RaisesGroup & Matcher with pytest alternatives across al…
AbduazizZiyodov 70b2bc3
Merge branch 'main' into deprecate-raises-group
AbduazizZiyodov 84af490
docs: add newsfragment
AbduazizZiyodov f05dbf9
fix: change version number
AbduazizZiyodov 82ba96a
style: format merged code
AbduazizZiyodov 03b0e35
fix: adjust `test_static_tool_sees_class_members` for deprecated clas…
AbduazizZiyodov 326d819
fix: change text formatting, so that build tool won't search for refe…
AbduazizZiyodov 54ef274
fix: add underscore prefix on class names to match exported classes' …
AbduazizZiyodov f71713a
style: correct formatting on newsfragment
AbduazizZiyodov bda1477
fix: find/replace
AbduazizZiyodov 7544b8a
fix: use `pytest.deprecated_call` context manager
AbduazizZiyodov 4ff73e7
fix: delete type tests, mypy errors
AbduazizZiyodov 75b76f3
fix: remove deprecated calls
AbduazizZiyodov ba44d3c
chore: update `_check_type_completeness.json`
AbduazizZiyodov 4a97684
test: add test case to test deprecation
AbduazizZiyodov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Both :class:`trio.testing.RaisesGroup` and :class:`trio.testing.Matcher` have been deprecated. Pytest alternatives pytest.RaisesGroup and pytest.RaisesExc (respectively) are considered correct replacement. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.