From e2d05259caf2c7c033a0a9376c0d3b7a1b040183 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Thu, 14 Aug 2014 00:03:03 -0400 Subject: [PATCH] - repair against use here --- lib/sqlalchemy/testing/plugin/plugin_base.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/sqlalchemy/testing/plugin/plugin_base.py b/lib/sqlalchemy/testing/plugin/plugin_base.py index 9c63a2e1d0..c02f0556b5 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( -- 2.47.3