Skip to content

Test/raises invalid regex errors - #15219

Closed
hemanshu406 wants to merge 4 commits into
pytest-dev:mainfrom
hemanshu406:test/raises-invalid-regex-errors
Closed

hemanshu406 wants to merge 4 commits into
pytest-dev:mainfrom
hemanshu406:test/raises-invalid-regex-errors

Conversation

@hemanshu406

Copy link
Copy Markdown

Summary

  • Added test coverage for invalid regular expression patterns passed to RaisesExc and RaisesGroup.
  • Verified that malformed regex patterns raise the expected pytest validation errors.
  • Improved edge-case test coverage without changing existing functionality.

Testing

  • python -m pytest testing/python/raises_group.py -q
  • 31 passed

Checklist

  • Added relevant automated tests.
  • Verified the relevant tests pass.
  • Added a changelog fragment if required.
  • Verified contributor information in AUTHORS.
  • Verified AI assistance is credited in commit trailers.

AI Assistance

GitHub Copilot assisted with implementation and testing. The changes require human review and ownership before submission.

Himanshu and others added 4 commits October 19, 2026 14:37
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@pyba-chronographer pyba-chronographer Bot added the bot:chronographer:provided (automation) changelog entry is part of PR label Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bot:chronographer:provided (automation) changelog entry is part of PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants