From: jackwotherspoon Date: Mon, 29 May 2023 18:55:00 +0000 (+0000) Subject: chore: update tests X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e919a1cee6289e29318ff72bf8ca634ea5f4e84e;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git chore: update tests --- diff --git a/test/dialect/postgresql/test_async_pg_py3k.py b/test/dialect/postgresql/test_async_pg_py3k.py index d2a9ff10b7..889ca41503 100644 --- a/test/dialect/postgresql/test_async_pg_py3k.py +++ b/test/dialect/postgresql/test_async_pg_py3k.py @@ -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" ) diff --git a/test/ext/asyncio/test_engine_py3k.py b/test/ext/asyncio/test_engine_py3k.py index 59d9f99db0..ff4fcbf28e 100644 --- a/test/ext/asyncio/test_engine_py3k.py +++ b/test/ext/asyncio/test_engine_py3k.py @@ -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