'Test that returning a non-zero value stops the operation in progress.'

def CheckCancelOperation(self):

    con = sqlite.connect(':memory:')
    progress_calls = []
    def progress():
        progress_calls.append(None)
        return 1
    con.set_progress_handler(progress, 1)
    curs = con.cursor()
    self.assertRaises(sqlite.OperationalError, curs.execute, 'create    table    bar    (a,    b)')
