con.execute("""drop trigger paj""")
meta.drop_all()
+ @testing.fails_on_everything_except('mssql+pyodbc', 'pyodbc-specific feature')
@testing.provide_metadata
def test_disable_scope_identity(self):
- engine = engines.testing_engine(options={"use_scope_identity":False})
+ engine = engines.testing_engine(options={"use_scope_identity": False})
metadata = self.metadata
metadata.bind = engine
t1 = Table('t1', metadata,
return fails_on_everything_except('mysql+mysqldb', 'mysql+oursql',
'sqlite+pysqlite', 'mysql+pymysql',
'mysql+cymysql',
- 'sybase', 'mssql+pyodbc', 'mssql+mxodbc')
+ 'sybase', 'mssql')
@property
def implements_get_lastrowid(self):
cursor object.
"""
- return fails_on_everything_except('mysql+mysqldb', 'mysql+oursql',
+ return skip_if('mssql+pymssql', 'crashes on pymssql') + \
+ fails_on_everything_except('mysql+mysqldb', 'mysql+oursql',
'sqlite+pysqlite', 'mysql+pymysql',
'mysql+cymysql')
def precision_numerics_general(self):
"""target backend has general support for moderately high-precision
numerics."""
- return fails_if('mssql+pymssql', 'FIXME: improve pymssql dec handling')
+ return exclusions.open()
@property
def precision_numerics_enotation_small(self):
"""target backend supports Decimal() objects using E notation
to represent very small values."""
- return fails_if('mssql+pymssql', 'FIXME: improve pymssql dec handling')
+ # NOTE: this exclusion isn't used in current tests.
+ return exclusions.open()
@property
def precision_numerics_enotation_large(self):
('mssql+pyodbc', None, None,
'mssql+pyodbc has FP inaccuracy even with '
'only four decimal places '
+ ),
+ ('mssql+pymssql', None, None,
+ 'mssql+pymssql has FP inaccuracy even with '
+ 'only four decimal places '
)
])