diff options
Diffstat (limited to 'test/ext/asyncio/test_scoping_py3k.py')
-rw-r--r-- | test/ext/asyncio/test_scoping_py3k.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ext/asyncio/test_scoping_py3k.py b/test/ext/asyncio/test_scoping_py3k.py index d722320f3..caba1c660 100644 --- a/test/ext/asyncio/test_scoping_py3k.py +++ b/test/ext/asyncio/test_scoping_py3k.py @@ -37,8 +37,9 @@ class AsyncScopedSessionTest(AsyncFixture): await AsyncSession.flush() conn = await AsyncSession.connection() + stmt = select(func.count(User.id)).where(User.name == user_name) - eq_(await conn.scalar(stmt), 1) + eq_(await AsyncSession.scalar(stmt), 1) await AsyncSession.delete(u1) await AsyncSession.flush() |