'connection rolls back before destruction'

def testRollbackOnDel(self):

    connection = cx_Oracle.connect(self.username, self.password, self.tnsentry)
    cursor = connection.cursor()
    cursor.execute(u'truncate    table    TestExecuteMany')
    otherConnection = cx_Oracle.connect(self.username, self.password, self.tnsentry)
    otherCursor = otherConnection.cursor()
    otherCursor.execute(u'insert    into    TestExecuteMany    (IntCol)    values    (1)')
    del otherCursor
    del otherConnection
    cursor.execute(u'select    count(*)    from    TestExecuteMany')
    (count,) = cursor.fetchone()
    self.failUnlessEqual(count, 0)
