'This tests the improved concurrency with pysqlite 2.3.4. You needed
to roll back con2 before you could commit con1.'

def CheckLocking(self):

    if (sqlite.sqlite_version_info < (3, 2, 2)):
        return
    self.cur1.execute('create    table    test(i)')
    self.cur1.execute('insert    into    test(i)    values    (5)')
    try:
        self.cur2.execute('insert    into    test(i)    values    (5)')
        self.fail('should    have    raised    an    OperationalError')
    except sqlite.OperationalError:
        pass
    except:
        self.fail('should    have    raised    an    OperationalError')
    self.con1.commit()
