

def tearDown(self):
    ' self.drivers should override this method to perform required cleanup\n            if any is necessary, such as deleting the test database.\n            The default drops the tables that may be created.\n        '
    con = self._connect()
    try:
        cur = con.cursor()
        for ddl in (self.xddl1, self.xddl2):
            try:
                cur.execute(ddl)
                con.commit()
            except self.driver.Error:
                pass
    finally:
        con.close()

dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/MySQL-python-1.2.5/tests/dbapi20.py DatabaseAPI20Test.tearDown/original