]> 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>
Mon, 27 Jan 2014 18:34:33 +0000 (13:34 -0500)
lib/sqlalchemy/testing/fixtures.py
test/orm/inheritance/test_assorted_poly.py

index 464a723d29263203783c359e58b7e96ca9a9e4c8..28541b14b50a3133eb8dfb3da131a3f0015093da 100644 (file)
@@ -348,5 +348,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 c3ed73c9ca0ba60d9b3ae92c6184bb946ab65d6a..cbfbf5ba77746dee540aece8477d818631fa611e 100644 (file)
@@ -1525,7 +1525,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