diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-04-22 14:14:11 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-04-22 14:14:11 -0400 |
commit | 39978060b0d81bd470aade97e608c189b6958dfa (patch) | |
tree | 07fa0fc99fba3ec3435a78647375b52df8b39811 /lib/sqlalchemy/testing/util.py | |
parent | f704b7265a634be70f0255adfb2a084b7384b727 (diff) | |
download | sqlalchemy-39978060b0d81bd470aade97e608c189b6958dfa.tar.gz |
- repair a regression caused by #3282, where we no longer were
applying any topological sort to tables on SQLite. See the
changelog for details, but we now continue to sort
tables for SQLite on DROP, prohibit the sort from considering
alter, and only warn if we encounter an unresolvable cycle, in
which case, then we forego the ordering. use_alter as always
is used to break such a cycle.
fixes #3378
Diffstat (limited to 'lib/sqlalchemy/testing/util.py')
-rw-r--r-- | lib/sqlalchemy/testing/util.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/util.py b/lib/sqlalchemy/testing/util.py index 6d6fa094e..1842e58a5 100644 --- a/lib/sqlalchemy/testing/util.py +++ b/lib/sqlalchemy/testing/util.py @@ -185,6 +185,7 @@ def provide_metadata(fn, *args, **kw): """Provide bound MetaData for a single test, dropping afterwards.""" from . import config + from . import engines from sqlalchemy import schema metadata = schema.MetaData(config.db) @@ -194,7 +195,7 @@ def provide_metadata(fn, *args, **kw): try: return fn(*args, **kw) finally: - metadata.drop_all() + engines.drop_all_tables(metadata, config.db) self.metadata = prev_meta |