]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
- repair the fixture/test here to make sure state isn't left over causing other tests...
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 27 Jan 2014 18:34:33 +0000 (13:34 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 29 Jan 2014 00:49:15 +0000 (19:49 -0500)
lib/sqlalchemy/testing/fixtures.py
test/orm/inheritance/test_assorted_poly.py

index 5c587cb2f26f3157229f1678364c6539af9c6fdf..28dcd792852a7257127d652d42514c4df20f6d03 100644 (file)
@@ -340,5 +340,5 @@ class DeclarativeMappedTest(MappedTest):
         cls.DeclarativeBasic = _DeclBase
         fn()
 
-        if cls.metadata.tables:
+        if cls.metadata.tables and cls.run_create_tables:
             cls.metadata.create_all(config.db)
index eb8abdba724ea22092f284c7c51d3c33becb5573..58544ee90e11587ac71f71e794d76bd29f3493a3 100644 (file)
@@ -1524,7 +1524,7 @@ class Ticket2419Test(fixtures.DeclarativeMappedTest):
 class ColSubclassTest(fixtures.DeclarativeMappedTest, testing.AssertsCompiledSQL):
     """Test [ticket:2918]'s test case."""
 
-    run_create_tables = None
+    run_create_tables = run_deletes = None
     __dialect__ = 'default'
 
     @classmethod