mirror of
https://github.com/python/cpython.git
synced 2025-07-31 07:04:42 +00:00
Update to pysqlite 2.2.0
This commit is contained in:
parent
a058836e96
commit
72289a616c
17 changed files with 592 additions and 134 deletions
|
@ -268,6 +268,12 @@ class CursorTests(unittest.TestCase):
|
|||
self.cu.executemany("insert into test(name) values (?)", [(1,), (2,), (3,)])
|
||||
self.failUnlessEqual(self.cu.rowcount, 3)
|
||||
|
||||
def CheckTotalChanges(self):
|
||||
self.cu.execute("insert into test(name) values ('foo')")
|
||||
self.cu.execute("insert into test(name) values ('foo')")
|
||||
if self.cx.total_changes < 2:
|
||||
self.fail("total changes reported wrong value")
|
||||
|
||||
# Checks for executemany:
|
||||
# Sequences are required by the DB-API, iterators
|
||||
# enhancements in pysqlite.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue