]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
chore: update tests
authorjackwotherspoon <jackwoth@google.com>
Mon, 29 May 2023 18:55:00 +0000 (18:55 +0000)
committerjackwotherspoon <jackwoth@google.com>
Mon, 29 May 2023 18:55:00 +0000 (18:55 +0000)
test/dialect/postgresql/test_async_pg_py3k.py
test/ext/asyncio/test_engine_py3k.py

index d2a9ff10b715e8c9836a9be43b1c718e05fa5e33..889ca415037783a115802875f696ae18d1558565 100644 (file)
@@ -10,7 +10,7 @@ from sqlalchemy import select
 from sqlalchemy import String
 from sqlalchemy import Table
 from sqlalchemy import testing
-from sqlalchemy.dialects.postgresql import ENUM
+from sqlalchemy.dialects.postgresql import asyncpg, ENUM
 from sqlalchemy.testing import async_test
 from sqlalchemy.testing import eq_
 from sqlalchemy.testing import fixtures
@@ -286,11 +286,8 @@ class AsyncPgTest(fixtures.TestBase):
 
     @async_test
     async def test_async_creator(self, metadata, async_testing_engine):
-        print(testing.db.url)
-
+        import asyncpg
         async def async_creator():
-            import asyncpg
-
             conn = await asyncpg.connect(
                 "postgresql://scott:tiger@127.0.0.1:5432/test"
             )
index 59d9f99db019b2b250b5005bde8a0f76850b488f..ff4fcbf28eb9644ca00528d85c7a6964b4610abb 100644 (file)
@@ -2,7 +2,6 @@ import asyncio
 import inspect as stdlib_inspect
 from unittest.mock import patch
 
-import asyncpg
 from sqlalchemy import Column
 from sqlalchemy import create_engine
 from sqlalchemy import delete