diff options
author | mike bayer <mike_mp@zzzcomputing.com> | 2020-03-02 16:35:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@bbpush.zzzcomputing.com> | 2020-03-02 16:35:47 +0000 |
commit | 3dd23a57b1b7985963b633730776d6923d024966 (patch) | |
tree | 75be3bcb7567db21fb4161dcee92c13da5e30cc6 /test/dialect/postgresql/test_reflection.py | |
parent | 649de79950dcf952d7a44069faf36925c23c4e63 (diff) | |
parent | c155ae910bac2e31f5499b321c19d6b7c061deec (diff) | |
download | sqlalchemy-3dd23a57b1b7985963b633730776d6923d024966.tar.gz |
Merge "Deprecate the databases packages"
Diffstat (limited to 'test/dialect/postgresql/test_reflection.py')
-rw-r--r-- | test/dialect/postgresql/test_reflection.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dialect/postgresql/test_reflection.py b/test/dialect/postgresql/test_reflection.py index 548338e9e..c66537250 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): |