From: Mike Bayer Date: Sun, 28 May 2006 18:01:22 +0000 (+0000) Subject: do-nothing dispose() method in SingletonThreadPool X-Git-Tag: rel_0_2_1~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e36ec1407dbeb242b216c4714e9c5a1fc995073a;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git do-nothing dispose() method in SingletonThreadPool --- diff --git a/lib/sqlalchemy/pool.py b/lib/sqlalchemy/pool.py index 4452f6419f..ec6d249513 100644 --- a/lib/sqlalchemy/pool.py +++ b/lib/sqlalchemy/pool.py @@ -179,6 +179,8 @@ class SingletonThreadPool(Pool): self._conns = {} self._creator = creator + def dispose(self): + pass def status(self): return "SingletonThreadPool id:%d thread:%d size: %d" % (id(self), thread.get_ident(), len(self._conns)) diff --git a/test/transaction.py b/test/transaction.py index da2e94c05f..a009c447ca 100644 --- a/test/transaction.py +++ b/test/transaction.py @@ -127,7 +127,7 @@ class TLTransactionTest(testbase.PersistTest): @testbase.unsupported('mysql', 'sqlite') def testnesting(self): - """test a basic rollback""" + """tests nesting of tranacstions""" external_connection = tlengine.connect() self.assert_(external_connection.connection is not tlengine.contextual_connect().connection) tlengine.begin()