From 9fca5d827d880ccc529c94bb65c46de6aafd227c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Fri, 24 Jan 2020 14:07:24 -0500 Subject: Create initial future package, RemovedIn20Warning Reorganization of Select() is the first major element of the 2.0 restructuring. In order to start this we need to first create the new Select constructor and apply legacy elements to the old one. This in turn necessitates starting up the RemovedIn20Warning concept which itself need to refer to "sqlalchemy.future", so begin to establish this basic framework. Additionally, update the DML constructors with the newer no-keyword style. Remove the use of the "pending deprecation" and fix Query.add_column() deprecation which was not acting as deprecated. Fixes: #4845 Fixes: #4648 Change-Id: I0c7a22b2841a985e1c379a0bb6c94089aae6264c --- lib/sqlalchemy/testing/warnings.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/sqlalchemy/testing/warnings.py') diff --git a/lib/sqlalchemy/testing/warnings.py b/lib/sqlalchemy/testing/warnings.py index 889ae27e3..08f543b47 100644 --- a/lib/sqlalchemy/testing/warnings.py +++ b/lib/sqlalchemy/testing/warnings.py @@ -31,6 +31,8 @@ def setup_filters(): "ignore", category=DeprecationWarning, message=".*inspect.get.*argspec" ) + warnings.filterwarnings("ignore", category=sa_exc.RemovedIn20Warning) + def assert_warnings(fn, warning_msgs, regex=False): """Assert that each of the given warnings are emitted by fn. -- cgit v1.2.1