From c85fa9fa50ca32523c160eaab58ab6d2b97aacc6 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 26 Jul 2014 18:26:22 -0400 Subject: - rework the exclusions system to have much better support for compound rules, better message formatting --- lib/sqlalchemy/testing/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/sqlalchemy/testing/schema.py') 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) -- cgit v1.2.1