From c155ae910bac2e31f5499b321c19d6b7c061deec Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Fri, 28 Feb 2020 19:26:03 +0100 Subject: Deprecate the databases packages The databases package is an old alias to the dialect package, and its usage is now deprecated Change-Id: I5343a2d270ed5a8c654b9fe13dff40cdf54649ed --- test/dialect/postgresql/test_reflection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/dialect/postgresql/test_reflection.py') diff --git a/test/dialect/postgresql/test_reflection.py b/test/dialect/postgresql/test_reflection.py index 830a54eef..6c0ba5fce 100644 --- a/test/dialect/postgresql/test_reflection.py +++ b/test/dialect/postgresql/test_reflection.py @@ -397,10 +397,10 @@ class DomainReflectionTest(fixtures.TestBase, AssertsExecutionResults): ), "Expected reflected column to be nullable." def test_unknown_types(self): - from sqlalchemy.databases import postgresql + from sqlalchemy.dialects.postgresql import base - ischema_names = postgresql.PGDialect.ischema_names - postgresql.PGDialect.ischema_names = {} + ischema_names = base.PGDialect.ischema_names + base.PGDialect.ischema_names = {} try: m2 = MetaData(testing.db) assert_raises(exc.SAWarning, Table, "testtable", m2, autoload=True) @@ -412,7 +412,7 @@ class DomainReflectionTest(fixtures.TestBase, AssertsExecutionResults): assert t3.c.answer.type.__class__ == sa.types.NullType finally: - postgresql.PGDialect.ischema_names = ischema_names + base.PGDialect.ischema_names = ischema_names class ReflectionTest(fixtures.TestBase): -- cgit v1.2.1