diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-29 13:34:03 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-09-29 13:34:03 -0400 |
| commit | e9fc615a2107c2c1aaf29a0c3c6923549c4b7150 (patch) | |
| tree | f250c4534d5ff8a23875855af6718fad717b03e6 /lib/sqlalchemy/testing | |
| parent | 04e126dd495776c542cb02d0cc46bfbaed5d1d47 (diff) | |
| download | sqlalchemy-e9fc615a2107c2c1aaf29a0c3c6923549c4b7150.tar.gz | |
adjustments
Diffstat (limited to 'lib/sqlalchemy/testing')
| -rw-r--r-- | lib/sqlalchemy/testing/exclusions.py | 2 | ||||
| -rw-r--r-- | lib/sqlalchemy/testing/plugin/noseplugin.py | 6 | ||||
| -rw-r--r-- | lib/sqlalchemy/testing/requirements.py | 9 |
3 files changed, 14 insertions, 3 deletions
diff --git a/lib/sqlalchemy/testing/exclusions.py b/lib/sqlalchemy/testing/exclusions.py index 96dd0d693..07e3e7b7f 100644 --- a/lib/sqlalchemy/testing/exclusions.py +++ b/lib/sqlalchemy/testing/exclusions.py @@ -86,7 +86,7 @@ class Predicate(object): class BooleanPredicate(Predicate): def __init__(self, value, description=None): self.value = value - self.description = description + self.description = description or "boolean %s" % value def __call__(self): return self.value diff --git a/lib/sqlalchemy/testing/plugin/noseplugin.py b/lib/sqlalchemy/testing/plugin/noseplugin.py index 60190eb8b..aff1dffa5 100644 --- a/lib/sqlalchemy/testing/plugin/noseplugin.py +++ b/lib/sqlalchemy/testing/plugin/noseplugin.py @@ -144,7 +144,11 @@ class NoseSQLAlchemy(Plugin): test_suite.__name__ = cls.__name__ for requirement in cls.__requires__: check = getattr(config.requirements, requirement) - check(test_suite)() + try: + check(test_suite)() + except TypeError: + import pdb + pdb.set_trace() if cls.__unsupported_on__: spec = exclusions.db_spec(*cls.__unsupported_on__) diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index 90385c391..ea8242448 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -68,4 +68,11 @@ class SuiteRequirements(Requirements): def sequences(self): """Target database must support SEQUENCEs.""" - return self.config.db.dialect.supports_sequences + return exclusions.only_if([ + lambda: self.config.db.dialect.supports_sequences + ], "no SEQUENCE support") + + @property + def reflects_pk_names(self): + return exclusions.closed() + |
