summaryrefslogtreecommitdiff
path: root/test/lib/requires.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/requires.py')
-rw-r--r--test/lib/requires.py32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/lib/requires.py b/test/lib/requires.py
index 222dc93f6..993a1546f 100644
--- a/test/lib/requires.py
+++ b/test/lib/requires.py
@@ -54,7 +54,7 @@ def boolean_col_expressions(fn):
no_support('maxdb', 'FIXME: verify not supported by database'),
no_support('informix', 'not supported by database'),
)
-
+
def identity(fn):
"""Target database must support GENERATED AS IDENTITY or a facsimile.
@@ -99,19 +99,19 @@ def row_triggers(fn):
# no access to same table
no_support('mysql', 'requires SUPER priv'),
exclude('mysql', '<', (5, 0, 10), 'not supported by database'),
-
+
# huh? TODO: implement triggers for PG tests, remove this
- no_support('postgresql', 'PG triggers need to be implemented for tests'),
+ no_support('postgresql', 'PG triggers need to be implemented for tests'),
)
def correlated_outer_joins(fn):
"""Target must support an outer join to a subquery which correlates to the parent."""
-
+
return _chain_decorators_on(
fn,
no_support('oracle', 'Raises "ORA-01799: a column may not be outer-joined to a subquery"')
)
-
+
def savepoints(fn):
"""Target database must support savepoints."""
return _chain_decorators_on(
@@ -126,21 +126,21 @@ def savepoints(fn):
def denormalized_names(fn):
"""Target database must have 'denormalized', i.e. UPPERCASE as case insensitive names."""
-
+
return skip_if(
lambda: not testing.db.dialect.requires_name_normalize,
"Backend does not require denomralized names."
)(fn)
-
+
def schemas(fn):
"""Target database must support external schemas, and have one named 'test_schema'."""
-
+
return _chain_decorators_on(
fn,
no_support('sqlite', 'no schema support'),
no_support('firebird', 'no schema support')
)
-
+
def sequences(fn):
"""Target database must support SEQUENCEs."""
return _chain_decorators_on(
@@ -164,7 +164,7 @@ def update_nowait(fn):
no_support('sqlite', 'no FOR UPDATE NOWAIT support'),
no_support('sybase', 'no FOR UPDATE NOWAIT support'),
)
-
+
def subqueries(fn):
"""Target database must support subqueries."""
return _chain_decorators_on(
@@ -198,7 +198,7 @@ def offset(fn):
fn,
fails_on('sybase', 'no support for OFFSET or equivalent'),
)
-
+
def returning(fn):
return _chain_decorators_on(
fn,
@@ -209,7 +209,7 @@ def returning(fn):
no_support('sybase', 'not supported by database'),
no_support('informix', 'not supported by database'),
)
-
+
def two_phase_transactions(fn):
"""Target database must support two-phase transactions."""
return _chain_decorators_on(
@@ -257,13 +257,13 @@ def cextensions(fn):
fn,
skip_if(lambda: not _has_cextensions(), "C extensions not installed")
)
-
+
def dbapi_lastrowid(fn):
return _chain_decorators_on(
fn,
fails_on_everything_except('mysql+mysqldb', 'mysql+oursql', 'sqlite+pysqlite')
)
-
+
def sane_multi_rowcount(fn):
return _chain_decorators_on(
fn,
@@ -283,7 +283,7 @@ def reflects_pk_names(fn):
fn,
fails_on_everything_except('postgresql', 'oracle')
)
-
+
def python2(fn):
return _chain_decorators_on(
fn,
@@ -317,7 +317,7 @@ def _has_cextensions():
return True
except ImportError:
return False
-
+
def _has_sqlite():
from sqlalchemy import create_engine
try: