]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44852: Support filtering over warnings without a set message (GH-27793)
authorŁukasz Langa <lukasz@langa.pl>
Wed, 18 Aug 2021 11:19:30 +0000 (13:19 +0200)
committerGitHub <noreply@github.com>
Wed, 18 Aug 2021 11:19:30 +0000 (13:19 +0200)
commit8cf07d3db3eed02b43350a5f9dbf68f1c839ea82
treec5c4721f01da3171db197c69e25030720e6541cd
parent3240bc62f4e0afa09964f3afc845697f0a0806b9
bpo-44852: Support filtering over warnings without a set message (GH-27793)

Additional improvements:

- messages which were compiled regular expressions aren't unpacked back into
  strings for unmatched warnings;

- removed unnecessary "if tokens:" check (there's one before the for loop);

- took `endswith` calculation out of the for loop.
Lib/test/support/__init__.py