summaryrefslogtreecommitdiff
path: root/test/testlib/testing.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-08-19 21:27:34 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-08-19 21:27:34 +0000
commit427ed1966f0f9ce13df49dcdbe43ce48333e94fa (patch)
tree20c34c3a838c37c73828473ea47e889c51f1fe8f /test/testlib/testing.py
parent20c82967ca98ceead88401ca8f35f8cf0e758318 (diff)
downloadsqlalchemy-427ed1966f0f9ce13df49dcdbe43ce48333e94fa.tar.gz
- fixed a bug in declarative test which was looking for old version of history
- Added "sorted_tables" accessor to MetaData, which returns Table objects sorted in order of dependency as a list. This deprecates the MetaData.table_iterator() method. The "reverse=False" keyword argument has also been removed from util.sort_tables(); use the Python 'reversed' function to reverse the results. [ticket:1033]
Diffstat (limited to 'test/testlib/testing.py')
-rw-r--r--test/testlib/testing.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testlib/testing.py b/test/testlib/testing.py
index 1c3b0f0bc..cc7736937 100644
--- a/test/testlib/testing.py
+++ b/test/testlib/testing.py
@@ -911,7 +911,7 @@ class ORMTest(TestBase, AssertsExecutionResults):
if not self.keep_mappers:
clear_mappers()
if not self.keep_data:
- for t in _otest_metadata.table_iterator(reverse=True):
+ for t in reversed(_otest_metadata.sorted_tables):
try:
t.delete().execute().close()
except Exception, e: