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

@unittest.skipIf((sqlite.sqlite_version_info < (3, 2, 2)), 'test    hangs    on    sqlite    versions    older    than    3.2.2')
def CheckLocking(self):

    self.cur1.execute('create    table    test(i)')
    self.cur1.execute('insert    into    test(i)    values    (5)')
    with self.assertRaises(sqlite.OperationalError):
        self.cur2.execute('insert    into    test(i)    values    (5)')
    self.con1.commit()
