summaryrefslogtreecommitdiffstats
path: root/Lib/sqlite3/test/dbapi.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-06-13 21:42:50 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-06-13 21:42:50 (GMT)
commit48b5c98e6e0139c24298f6ed7962da29d0f9cb89 (patch)
tree53c7337a6959ea48dfbe1625dfdec222962d625d /Lib/sqlite3/test/dbapi.py
parentf5b1af6df559f1c29211701f21bd181eab6a5b60 (diff)
downloadcpython-48b5c98e6e0139c24298f6ed7962da29d0f9cb89.zip
cpython-48b5c98e6e0139c24298f6ed7962da29d0f9cb89.tar.gz
cpython-48b5c98e6e0139c24298f6ed7962da29d0f9cb89.tar.bz2
Replace more boilerplate code with modern unittest features in sqlite3 tests
Diffstat (limited to 'Lib/sqlite3/test/dbapi.py')
-rw-r--r--Lib/sqlite3/test/dbapi.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/sqlite3/test/dbapi.py b/Lib/sqlite3/test/dbapi.py
index 6057805..903e599 100644
--- a/Lib/sqlite3/test/dbapi.py
+++ b/Lib/sqlite3/test/dbapi.py
@@ -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