From: Paul Johnston Date: Sun, 12 Aug 2007 20:52:07 +0000 (+0000) Subject: MSSQL: disable new 0.4 tests that cause hangs X-Git-Tag: rel_0_4beta2~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0013b84f8b022e2354cd4d9f3c6436d3d854f002;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git MSSQL: disable new 0.4 tests that cause hangs --- diff --git a/test/engine/transaction.py b/test/engine/transaction.py index 26ec09f053..8f1bb2d989 100644 --- a/test/engine/transaction.py +++ b/test/engine/transaction.py @@ -117,7 +117,7 @@ class TransactionTest(PersistTest): assert len(result.fetchall()) == 0 connection.close() - @testing.unsupported('sqlite') + @testing.unsupported('sqlite', 'mssql') # TEMP: test causes mssql to hang @testing.exclude('mysql', '<', (5, 0, 3)) def testnestedsubtransactionrollback(self): connection = testbase.db.connect() @@ -135,7 +135,7 @@ class TransactionTest(PersistTest): ) connection.close() - @testing.unsupported('sqlite') + @testing.unsupported('sqlite', 'mssql') # TEMP: test causes mssql to hang @testing.exclude('mysql', '<', (5, 0, 3)) def testnestedsubtransactioncommit(self): connection = testbase.db.connect() @@ -153,7 +153,7 @@ class TransactionTest(PersistTest): ) connection.close() - @testing.unsupported('sqlite') + @testing.unsupported('sqlite', 'mssql') # TEMP: test causes mssql to hang @testing.exclude('mysql', '<', (5, 0, 3)) def testrollbacktosubtransaction(self): connection = testbase.db.connect() diff --git a/test/orm/session.py b/test/orm/session.py index 2396868694..d0b299b630 100644 --- a/test/orm/session.py +++ b/test/orm/session.py @@ -73,7 +73,7 @@ class SessionTest(AssertMixin): # then see if expunge fails session.expunge(u) - @testing.unsupported('sqlite') + @testing.unsupported('sqlite', 'mssql') # TEMP: test causes mssql to hang def test_transaction(self): class User(object):pass mapper(User, users) @@ -90,7 +90,7 @@ class SessionTest(AssertMixin): assert conn1.execute("select count(1) from users").scalar() == 1 assert testbase.db.connect().execute("select count(1) from users").scalar() == 1 - @testing.unsupported('sqlite') + @testing.unsupported('sqlite', 'mssql') # TEMP: test causes mssql to hang def test_autoflush(self): class User(object):pass mapper(User, users) @@ -109,7 +109,7 @@ class SessionTest(AssertMixin): assert conn1.execute("select count(1) from users").scalar() == 1 assert testbase.db.connect().execute("select count(1) from users").scalar() == 1 - @testing.unsupported('sqlite') + @testing.unsupported('sqlite', 'mssql') # TEMP: test causes mssql to hang def test_autoflush_unbound(self): class User(object):pass mapper(User, users) diff --git a/test/orm/unitofwork.py b/test/orm/unitofwork.py index 68348e42f5..8333dd5b60 100644 --- a/test/orm/unitofwork.py +++ b/test/orm/unitofwork.py @@ -474,6 +474,7 @@ class ClauseAttributesTest(UnitOfWorkTest): metadata.drop_all() UnitOfWorkTest.tearDownAll(self) + @testing.unsupported('mssql') # TEMP: test causes mssql to hang def test_update(self): class User(object): pass @@ -489,6 +490,7 @@ class ClauseAttributesTest(UnitOfWorkTest): assert u.counter == 2 self.assert_sql_count(testbase.db, go, 1) + @testing.unsupported('mssql') # TEMP: test causes mssql to hang def test_multi_update(self): class User(object): pass