summaryrefslogtreecommitdiff
path: root/test/testlib/testing.py
diff options
context:
space:
mode:
authorPaul Johnston <paj@pajhome.org.uk>2007-08-14 18:16:27 +0000
committerPaul Johnston <paj@pajhome.org.uk>2007-08-14 18:16:27 +0000
commitd0e78b044e795888baa3718a654c34f5744ca344 (patch)
treed9a0b47e26244ce40ac58b0551f40865ee7588d5 /test/testlib/testing.py
parentd93c7c3b8ff945d4e7f73962d3776062a54eb3c0 (diff)
downloadsqlalchemy-d0e78b044e795888baa3718a654c34f5744ca344.tar.gz
fudge to make SQL asserts work reliably with MSSQL
Diffstat (limited to 'test/testlib/testing.py')
-rw-r--r--test/testlib/testing.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/testlib/testing.py b/test/testlib/testing.py
index 9ee201202..e56a1d36f 100644
--- a/test/testlib/testing.py
+++ b/test/testlib/testing.py
@@ -258,6 +258,8 @@ class AssertMixin(PersistTest):
def assert_sql(self, db, callable_, list, with_sequences=None):
global testdata
testdata = TestData()
+ if config.db.name == 'mssql':
+ list = [s.endswith('; select scope_identity()') and s[:-25] or s for s in list]
if with_sequences is not None and (config.db.name == 'postgres' or
config.db.name == 'oracle'):
testdata.set_assert_list(self, with_sequences)