Changes between Initial Version and Version 1 of Ticket #37089


Ignore:
Timestamp:
May 7, 2026, 4:42:20 PM (6 days ago)
Author:
Mike Edmunds
Comment:

(I'm not sure if this is a bug or feature request, and whether the component should be "Testing framework" or internal "Utilities".)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #37089 – Description

    initial v1  
    2222We should change `ignore_warnings()` to `re.escape()` the `message`  arg and prepend `r".*"` to it, making it consistent with `assertWarnsMessage()` by default.
    2323
    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 regex this way.)
     24For 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.)
    2525
    2626We should maybe also `re.escape()` the `module` arg (but without the `r".*"`) and add a `module_re` arg.
Back to Top