mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
Replace more boilerplate code with modern unittest features in sqlite3 tests
This commit is contained in:
parent
f5b1af6df5
commit
48b5c98e6e
3 changed files with 6 additions and 13 deletions
|
@ -335,8 +335,7 @@ class CursorTests(unittest.TestCase):
|
|||
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")
|
||||
self.assertLess(2, self.cx.total_changes, msg='total changes reported wrong value')
|
||||
|
||||
# Checks for executemany:
|
||||
# Sequences are required by the DB-API, iterators
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue