From: Simon Willison Date: Tue, 7 Nov 2017 21:06:55 +0000 (-0800) Subject: Remove unused var from CheckCancelOperation test (GH-4317) X-Git-Tag: v3.7.0a3~214 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4fc4defd1c9bd667635ba4080404e7aa3fcd49ea;p=python Remove unused var from CheckCancelOperation test (GH-4317) It looks like this was copied from one of the previous tests, which did use it. --- diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py index 801a30cc34..d74e74bf27 100644 --- a/Lib/sqlite3/test/hooks.py +++ b/Lib/sqlite3/test/hooks.py @@ -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()