Skip to content

Commit 62eea6b

Browse files
author
Eugene Shershen
committed
add await_ attribute to connection.py; remove unused asyncio import in tests
1 parent 6e68738 commit 62eea6b

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

psqlpy_sqlalchemy/connection.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class AsyncAdapt_psqlpy_cursor(AsyncAdapt_dbapi_cursor):
3535
"_invalidate_schema_cache_asof",
3636
"_rowcount",
3737
"_rows",
38+
"await_",
3839
)
3940

4041
_adapt_connection: "AsyncAdapt_psqlpy_connection"

tests/test_connection.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,8 +431,6 @@ def test_execute_update_async_greenlet_fix(self, mock_prepare_execute):
431431
operation = "UPDATE test_table SET name = :name WHERE id = :id"
432432
parameters = {"name": "test_update", "id": 1}
433433

434-
import asyncio
435-
436434
# This should not raise any greenlet-related errors
437435
self.cursor.execute(operation, parameters)
438436

0 commit comments

Comments
 (0)