[Python-checkins] Remove unused var from CheckCancelOperation test (GH-4317)

Berker Peksag webhook-mailer at python.org
Tue Nov 7 16:06:58 EST 2017


https://github.com/python/cpython/commit/4fc4defd1c9bd667635ba4080404e7aa3fcd49ea
commit: 4fc4defd1c9bd667635ba4080404e7aa3fcd49ea
branch: master
author: Simon Willison <simonw at eventbrite.com>
committer: Berker Peksag <berker.peksag at gmail.com>
date: 2017-11-08T00:06:55+03:00
summary:

Remove unused var from CheckCancelOperation test (GH-4317)

It looks like this was copied from one of the previous tests, which did use it.

files:
M Lib/sqlite3/test/hooks.py

diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py
index 801a30cc34e..d74e74bf272 100644
--- a/Lib/sqlite3/test/hooks.py
+++ b/Lib/sqlite3/test/hooks.py
@@ -177,9 +177,7 @@ def CheckCancelOperation(self):
         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()



More information about the Python-checkins mailing list