summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/plugin/plugin_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/plugin_base.py')
-rw-r--r--lib/sqlalchemy/testing/plugin/plugin_base.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/plugin/plugin_base.py b/lib/sqlalchemy/testing/plugin/plugin_base.py
index 9c63a2e1d..c02f0556b 100644
--- a/lib/sqlalchemy/testing/plugin/plugin_base.py
+++ b/lib/sqlalchemy/testing/plugin/plugin_base.py
@@ -315,7 +315,8 @@ def _setup_requirements(argument):
@post
def _prep_testing_database(options, file_config):
from sqlalchemy.testing import config
- from sqlalchemy import schema, inspect, testing
+ from sqlalchemy.testing.exclusions import against
+ from sqlalchemy import schema, inspect
if options.dropfirst:
for cfg in config.Config.all_configs():
@@ -358,7 +359,7 @@ def _prep_testing_database(options, file_config):
schema="test_schema")
))
- if testing.against("postgresql"):
+ if against(cfg, "postgresql"):
from sqlalchemy.dialects import postgresql
for enum in inspector.get_enums("*"):
e.execute(postgresql.DropEnumType(