]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- repair against use here
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 14 Aug 2014 04:03:03 +0000 (00:03 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 14 Aug 2014 04:03:03 +0000 (00:03 -0400)
lib/sqlalchemy/testing/plugin/plugin_base.py

index 9c63a2e1d03400c631e25cad40c61f7baf312b78..c02f0556b59cfc185d5b09f29e6d8b6da3473399 100644 (file)
@@ -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(