diff options
Diffstat (limited to 'lib/sqlalchemy/testing/requirements.py')
-rw-r--r-- | lib/sqlalchemy/testing/requirements.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/requirements.py b/lib/sqlalchemy/testing/requirements.py index cc40022e9..7b0ddafe3 100644 --- a/lib/sqlalchemy/testing/requirements.py +++ b/lib/sqlalchemy/testing/requirements.py @@ -507,7 +507,9 @@ class SuiteRequirements(Requirements): @property def no_lastrowid_support(self): """the opposite of supports_lastrowid""" - return exclusions.NotPredicate(self.supports_lastrowid) + return exclusions.only_if( + [lambda config: not config.db.dialect.postfetch_lastrowid] + ) @property def reflects_pk_names(self): |