summaryrefslogtreecommitdiff
path: root/test/dialect/postgresql/test_async_pg_py3k.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2022-05-22 14:28:14 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2022-05-22 15:24:05 -0400
commit656fd0d73a679a2588289e285328af707e9401d1 (patch)
tree16517d5b939986f04ea421ce957aeccdc0e684df /test/dialect/postgresql/test_async_pg_py3k.py
parent0620614f95f62f35396e63c636cae98a0759f3ab (diff)
downloadsqlalchemy-656fd0d73a679a2588289e285328af707e9401d1.tar.gz
deprecate .connection on _ConnectionFairy, _ConnectionRecord
These are replaced by the read-only ManagesConnection.dbapi_connection attribute. For some reason both of these objects had "setter" for .connection as well; there's no use case for that at all so just remove setter logic entirely. Fixes: #6981 Change-Id: I6425de4a017f6370e1a7476cd491cabc55e55e67
Diffstat (limited to 'test/dialect/postgresql/test_async_pg_py3k.py')
-rw-r--r--test/dialect/postgresql/test_async_pg_py3k.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dialect/postgresql/test_async_pg_py3k.py b/test/dialect/postgresql/test_async_pg_py3k.py
index 4ccc847dc..d9116a7ce 100644
--- a/test/dialect/postgresql/test_async_pg_py3k.py
+++ b/test/dialect/postgresql/test_async_pg_py3k.py
@@ -268,7 +268,7 @@ class AsyncPgTest(fixtures.TestBase):
engine = async_testing_engine()
with mock.patch.object(engine.dialect, methname) as codec_meth:
conn = await engine.connect()
- adapted_conn = (await conn.get_raw_connection()).connection
+ adapted_conn = (await conn.get_raw_connection()).dbapi_connection
await conn.close()
eq_(codec_meth.mock_calls, [mock.call(adapted_conn)])