From ff1d989c1433c96ac1a50c3662e77ec1025c57cb Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 26 May 2021 13:46:36 -0400 Subject: get tests to pass on python 3.10 Resolved various deprecation warnings which were appearing as of Python version 3.10.0b1. block aiomysql on python 3.10 as they are using the "loop" argument that's removed sqlcipher-binary has no builds on 3.10, block it for 3.10 Fixes: #6540 Fixes: #6543 Change-Id: Iec1e3881fb289878881ae043b1a18c3ecdf5f077 --- lib/sqlalchemy/testing/warnings.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'lib/sqlalchemy/testing/warnings.py') diff --git a/lib/sqlalchemy/testing/warnings.py b/lib/sqlalchemy/testing/warnings.py index 3236ecf89..89ee861cb 100644 --- a/lib/sqlalchemy/testing/warnings.py +++ b/lib/sqlalchemy/testing/warnings.py @@ -25,10 +25,19 @@ def setup_filters(): # some selected deprecations... warnings.filterwarnings("error", category=DeprecationWarning) warnings.filterwarnings( - "ignore", category=DeprecationWarning, message=".*StopIteration" + "ignore", category=DeprecationWarning, message=r".*StopIteration" ) warnings.filterwarnings( - "ignore", category=DeprecationWarning, message=".*inspect.get.*argspec" + "ignore", + category=DeprecationWarning, + message=r".*inspect.get.*argspec", + ) + + # used by pytest-xdist + warnings.filterwarnings( + "ignore", + category=DeprecationWarning, + message=r".*isSet\(\) is deprecated, use is_set\(\).*", ) warnings.filterwarnings( "ignore", -- cgit v1.2.1