summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/test/requires.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/test/requires.py')
-rw-r--r--lib/sqlalchemy/test/requires.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/sqlalchemy/test/requires.py b/lib/sqlalchemy/test/requires.py
index bf911c2c2..1b9052fd8 100644
--- a/lib/sqlalchemy/test/requires.py
+++ b/lib/sqlalchemy/test/requires.py
@@ -11,7 +11,8 @@ from testing import \
exclude, \
emits_warning_on,\
skip_if,\
- fails_on
+ fails_on,\
+ fails_on_everything_except
import testing
import sys
@@ -245,6 +246,13 @@ def sane_rowcount(fn):
fn,
skip_if(lambda: not testing.db.dialect.supports_sane_rowcount)
)
+
+def reflects_pk_names(fn):
+ """Target driver reflects the name of primary key constraints."""
+ return _chain_decorators_on(
+ fn,
+ fails_on_everything_except('postgresql')
+ )
def python2(fn):
return _chain_decorators_on(