Changes between Initial Version and Version 1 of Ticket #37089
- Timestamp:
- May 7, 2026, 4:42:20 PM (6 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #37089 – Description
initial v1 22 22 We should change `ignore_warnings()` to `re.escape()` the `message` arg and prepend `r".*"` to it, making it consistent with `assertWarnsMessage()` by default. 23 23 24 For test cases that do want ignore messages by regex, we would introduce a `message_re` arg. Only one of `message` and `message_re` would be allowed at a time. (The PR for #35514 includes one test case that ''does'' use a in regexthis way.)24 For test cases that do want ignore messages by regex, we would introduce a `message_re` arg. Only one of `message` and `message_re` would be allowed at a time. (The PR for #35514 includes one test case that ''does'' use a regex in this way.) 25 25 26 26 We should maybe also `re.escape()` the `module` arg (but without the `r".*"`) and add a `module_re` arg.