diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-14 00:03:03 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-08-14 00:03:03 -0400 |
commit | e2d05259caf2c7c033a0a9376c0d3b7a1b040183 (patch) | |
tree | c077f07a970683c9739e981aae39af045011dfb5 /lib/sqlalchemy/testing/plugin/plugin_base.py | |
parent | 7fc08fe89af9760750899346cf81bd74e0d9150f (diff) | |
download | sqlalchemy-e2d05259caf2c7c033a0a9376c0d3b7a1b040183.tar.gz |
- repair against use here
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/plugin_base.py')
-rw-r--r-- | lib/sqlalchemy/testing/plugin/plugin_base.py | 5 |
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( |