sess.query(WeatherLocation).all()
eq_(
- canary,
- ['asia', 'north_america', 'north_america',
- 'europe', 'europe', 'south_america',
+ canary,
+ ['asia', 'north_america', 'north_america',
+ 'europe', 'europe', 'south_america',
'south_america']
)
\ No newline at end of file
skip_if,\
only_on,\
fails_on,\
- fails_on_everything_except
+ fails_on_everything_except,\
+ fails_if
+from sqlalchemy import util
import testing
import sys
def window_functions(fn):
return _chain_decorators_on(
fn,
- only_on(('postgresql', 'mssql', 'oracle'),
+ only_on(('postgresql', 'mssql', 'oracle'),
"Backend does not support window functions"),
)
return _chain_decorators_on(
fn,
fails_on_everything_except('mysql+mysqldb', 'mysql+oursql',
- 'sqlite+pysqlite', 'mysql+pymysql')
+ 'sqlite+pysqlite', 'mysql+pymysql'),
+ fails_if(lambda: util.pypy),
)
def sane_multi_rowcount(fn):
fn,
fails_on_everything_except('postgresql', 'oracle', 'firebird')
)
-
+
def reflects_pk_names(fn):
"""Target driver reflects the name of primary key constraints."""
return _chain_decorators_on(