pytest/testing/code
John Litborn 134b759e5d
raisesgroup followups (#13279)
* raisesgroup followups
* renames src/_pytest/raises_group.py to src/_pytest/raises.py
* moves pytest.raises from src/_pytest/python_api.py to src/_pytest/raises.py
* adds several newsfragments that should've been bundled with #13192
* add more detailed error message if you try to do RaisesGroup((ValueError, TypeError))
* mess around with ValueError vs TypeError on invalid expected exception
* revert change in behaviour if raises has a type mismatch
* add check example to raises, fix test after behaviour revert
* made args to AbstractMatcher, RaisesExc and RaisesGroup pos/kw-only

---------

Co-authored-by: Ran Benita <ran@unusedvar.com>
Co-authored-by: Bruno Oliveira <bruno@soliv.dev>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-03-29 13:08:12 +00:00
..
test_code.py RFC: from __future__ import annotations + migrate 2024-06-20 11:03:03 +02:00
test_excinfo.py raisesgroup followups (#13279) 2025-03-29 13:08:12 +00:00
test_source.py [pre-commit.ci] pre-commit autoupdate (#13306) 2025-03-21 13:31:58 +01:00