From: Mike Bayer Date: Thu, 14 Aug 2014 04:03:03 +0000 (-0400) Subject: - repair against use here X-Git-Tag: rel_1_0_0b1~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e2d05259caf2c7c033a0a9376c0d3b7a1b040183;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - repair against use here --- 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(