

def test_close(self):
    con = con._connect()
    try:
        cur = con.cursor()
    finally:
        con.close()
    self.assertRaises(self.driver.Error, self.executeDDL1, cur)
    self.assertRaises(self.driver.Error, con.commit)
    self.assertRaises(self.driver.Error, con.close)

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/MySQL-python-1.2.5/tests/dbapi20.py DatabaseAPI20Test.test_close/VarMisuse@12/14 `self`->`con`