summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/schema.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-07-26 18:26:22 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-07-26 18:26:22 -0400
commitc85fa9fa50ca32523c160eaab58ab6d2b97aacc6 (patch)
tree15a1582ef6883027c1bedeee6f5c0a95e46984d1 /lib/sqlalchemy/testing/schema.py
parent759e8aec138138683ed15a264aaa392d499c2b34 (diff)
downloadsqlalchemy-c85fa9fa50ca32523c160eaab58ab6d2b97aacc6.tar.gz
- rework the exclusions system to have much better support for compound
rules, better message formatting
Diffstat (limited to 'lib/sqlalchemy/testing/schema.py')
-rw-r--r--lib/sqlalchemy/testing/schema.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/schema.py b/lib/sqlalchemy/testing/schema.py
index 1cb356dd7..9561b1f1e 100644
--- a/lib/sqlalchemy/testing/schema.py
+++ b/lib/sqlalchemy/testing/schema.py
@@ -67,7 +67,7 @@ def Column(*args, **kw):
test_opts = dict([(k, kw.pop(k)) for k in list(kw)
if k.startswith('test_')])
- if config.requirements.foreign_key_ddl.predicate(config):
+ if not config.requirements.foreign_key_ddl.enabled_for_config(config):
args = [arg for arg in args if not isinstance(arg, schema.ForeignKey)]
col = schema.Column(*args, **kw)