mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 17:34:08 +03:00
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:
parent
4eea8bc912
commit
2cbedbee45
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user