Dropped test about close() on closed connection raising an exception

This seems unnecessary and has caused problems to a few. The DB-SIG seems
agreeing on the change:
http://mail.python.org/pipermail/db-sig/2011-October/005811.html
This commit is contained in:
Daniele Varrazzo 2012-03-04 05:09:46 +00:00
parent 4eea8bc912
commit 2cbedbee45

View File

@ -380,7 +380,9 @@ class DatabaseAPI20Test(unittest.TestCase):
self.assertRaises(self.driver.Error,con.commit) self.assertRaises(self.driver.Error,con.commit)
# connection.close should raise an Error if called more than once # connection.close should raise an Error if called more than once
self.assertRaises(self.driver.Error,con.close) # Issue discussed on DB-SIG: consensus seem that close() should not
# raised if called on closed objects. Issue reported back to Stuart.
# self.assertRaises(self.driver.Error,con.close)
def test_execute(self): def test_execute(self):
con = self._connect() con = self._connect()