diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2021-11-07 21:19:45 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@ci3.zzzcomputing.com> | 2021-11-07 21:19:45 +0000 |
commit | 201c00bc0837af831f115e8313ad3ccb0be97e7a (patch) | |
tree | beb7558e95d073b63fa4bb76d830ccaa2de9711a /lib/sqlalchemy/testing/engines.py | |
parent | 5b1c9053b0903b2d5a06f82b47fe16a870696ddc (diff) | |
parent | d050193daaa8d91371c759296f3304b8641c1976 (diff) | |
download | sqlalchemy-201c00bc0837af831f115e8313ad3ccb0be97e7a.tar.gz |
Merge "fully implement future engine and remove legacy" into main
Diffstat (limited to 'lib/sqlalchemy/testing/engines.py')
-rw-r--r-- | lib/sqlalchemy/testing/engines.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/lib/sqlalchemy/testing/engines.py b/lib/sqlalchemy/testing/engines.py index a54f70c5e..815009e78 100644 --- a/lib/sqlalchemy/testing/engines.py +++ b/lib/sqlalchemy/testing/engines.py @@ -269,7 +269,6 @@ def reconnecting_engine(url=None, options=None): def testing_engine( url=None, options=None, - future=None, asyncio=False, transfer_staticpool=False, ): @@ -277,10 +276,6 @@ def testing_engine( if asyncio: from sqlalchemy.ext.asyncio import create_async_engine as create_engine - elif future or ( - config.db and config.db._is_future and future is not False - ): - from sqlalchemy.future import create_engine else: from sqlalchemy import create_engine from sqlalchemy.engine.url import make_url @@ -417,28 +412,3 @@ class DBAPIProxyConnection(object): def __getattr__(self, key): return getattr(self.conn, key) - - -def proxying_engine( - conn_cls=DBAPIProxyConnection, cursor_cls=DBAPIProxyCursor -): - """Produce an engine that provides proxy hooks for - common methods. - - """ - - def mock_conn(): - return conn_cls(config.db, cursor_cls) - - def _wrap_do_on_connect(do_on_connect): - def go(dbapi_conn): - return do_on_connect(dbapi_conn.conn) - - return go - - return testing_engine( - options={ - "creator": mock_conn, - "_wrap_do_on_connect": _wrap_do_on_connect, - } - ) |