summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ext/declarative.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ext/declarative.py b/test/ext/declarative.py
index b9fa57cf0..6b226cc9f 100644
--- a/test/ext/declarative.py
+++ b/test/ext/declarative.py
@@ -777,7 +777,7 @@ class DeclarativeReflectionTest(testing.TestBase):
Base = decl.declarative_base(testing.db)
def tearDown(self):
- for t in reflection_metadata.sorted_tables:
+ for t in reversed(reflection_metadata.sorted_tables):
t.delete().execute()
def tearDownAll(self):