diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2022-01-23 15:06:41 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2022-01-23 15:06:41 +0000 |
commit | 321f64f71e7ecc7404da9b95e2e0aa1d692ac181 (patch) | |
tree | 6db9685eaa3fa64df450107b9e18de165db4c879 /lib/sqlalchemy/testing/assertions.py | |
parent | 3fc5d28b7999cafc5111ce999a218cd5cd9329a2 (diff) | |
parent | f653d5eb169e3d0371eae388aecb0db0cb0b8c11 (diff) | |
download | sqlalchemy-321f64f71e7ecc7404da9b95e2e0aa1d692ac181.tar.gz |
Merge "dont test squelched warnings against the filter" into main
Diffstat (limited to 'lib/sqlalchemy/testing/assertions.py')
-rw-r--r-- | lib/sqlalchemy/testing/assertions.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/assertions.py b/lib/sqlalchemy/testing/assertions.py index 2a00f1c14..5c79422dd 100644 --- a/lib/sqlalchemy/testing/assertions.py +++ b/lib/sqlalchemy/testing/assertions.py @@ -187,6 +187,8 @@ def _expect_warnings( if not exception or not issubclass(exception, _EXC_CLS): if not squelch_other_warnings: return real_warn(msg, *arg, **kw) + else: + return if not filters and not raise_on_any_unexpected: return |