]> granicus.if.org Git - python/commitdiff
Remove unused var from CheckCancelOperation test (GH-4317)
authorSimon Willison <simonw@eventbrite.com>
Tue, 7 Nov 2017 21:06:55 +0000 (13:06 -0800)
committerBerker Peksag <berker.peksag@gmail.com>
Tue, 7 Nov 2017 21:06:55 +0000 (00:06 +0300)
It looks like this was copied from one of the previous tests, which did use it.

Lib/sqlite3/test/hooks.py

index 801a30cc34e88d90deff6d0cf7301bce19d5a850..d74e74bf2722754256cf82b55d9a90f174115072 100644 (file)
@@ -177,9 +177,7 @@ class ProgressTests(unittest.TestCase):
         Test that returning a non-zero value stops the operation in progress.
         """
         con = sqlite.connect(":memory:")
-        progress_calls = []
         def progress():
-            progress_calls.append(None)
             return 1
         con.set_progress_handler(progress, 1)
         curs = con.cursor()