diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-26 19:06:13 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-05-26 19:06:13 -0400 |
commit | 6cde27fe9161a21b075c7b8faa09d1e77169f1f2 (patch) | |
tree | d7d986fa78683a7e570dd1e6da84e7bb4ca1b762 /lib/sqlalchemy/testing/schema.py | |
parent | 29689fa566ba1bd3dc08727754632c9e8074137c (diff) | |
download | sqlalchemy-6cde27fe9161a21b075c7b8faa09d1e77169f1f2.tar.gz |
a pass where we try to squash down as many list()/keys() combinations
as possible
Diffstat (limited to 'lib/sqlalchemy/testing/schema.py')
-rw-r--r-- | lib/sqlalchemy/testing/schema.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/testing/schema.py b/lib/sqlalchemy/testing/schema.py index 6f3e87cc9..025bbaabe 100644 --- a/lib/sqlalchemy/testing/schema.py +++ b/lib/sqlalchemy/testing/schema.py @@ -11,7 +11,7 @@ table_options = {} def Table(*args, **kw): """A schema.Table wrapper/hook for dialect-specific tweaks.""" - test_opts = dict([(k, kw.pop(k)) for k in list(kw.keys()) + test_opts = dict([(k, kw.pop(k)) for k in list(kw) if k.startswith('test_')]) kw.update(table_options) @@ -58,7 +58,7 @@ def Table(*args, **kw): def Column(*args, **kw): """A schema.Column wrapper/hook for dialect-specific tweaks.""" - test_opts = dict([(k, kw.pop(k)) for k in list(kw.keys()) + test_opts = dict([(k, kw.pop(k)) for k in list(kw) if k.startswith('test_')]) if not config.requirements.foreign_key_ddl.enabled: |