diff options
Diffstat (limited to 'lib/sqlalchemy/testing/fixtures.py')
-rw-r--r-- | lib/sqlalchemy/testing/fixtures.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/fixtures.py b/lib/sqlalchemy/testing/fixtures.py index 54b1cbb46..0ede25176 100644 --- a/lib/sqlalchemy/testing/fixtures.py +++ b/lib/sqlalchemy/testing/fixtures.py @@ -206,7 +206,11 @@ class TablesTest(TestBase): drop_all_tables(self.metadata, self.bind) # no need to run deletes if tables are recreated on setup - if self.run_define_tables != "each" and self.run_deletes == "each": + if ( + self.run_define_tables != "each" + and self.run_create_tables != "each" + and self.run_deletes == "each" + ): with self.bind.begin() as conn: for table in reversed( [ |