[issue39912] warnings.py should not raise AssertionError when validating arguments

2020-03-09 Thread Rémi Lapeyre
Change by Rémi Lapeyre : -- keywords: +patch pull_requests: +18236 stage: -> patch review pull_request: https://github.com/python/cpython/pull/18878 ___ Python tracker ___

[issue39912] warnings.py should not raise AssertionError when validating arguments

2020-03-09 Thread Rémi Lapeyre
New submission from Rémi Lapeyre : Currently simplefilter() and filterwarnings() don't validate their arguments when using -O and AssertionError is not the most appropriate exception to raise. I will post a PR shortly. -- components: Library (Lib) messages: 363732 nosy: remi.lapeyre pr