diff -r 9c0838f2f86c Lib/sqlite3/test/hooks.py --- a/Lib/sqlite3/test/hooks.py Fri Mar 25 00:32:23 2011 -0400 +++ b/Lib/sqlite3/test/hooks.py Sat Mar 26 23:26:28 2011 +0100 @@ -166,14 +166,14 @@ Test that setting the progress handler to None clears the previously set handler. """ con = sqlite.connect(":memory:") - action = 0 + action = [] def progress(): - action = 1 + action.append(1) return 0 con.set_progress_handler(progress, 1) con.set_progress_handler(None, 1) con.execute("select 1 union select 2 union select 3").fetchall() - self.assertEqual(action, 0, "progress handler was not cleared") + self.assertFalse(len(action), "progress handler was not cleared") def suite(): collation_suite = unittest.makeSuite(CollationTests, "Check")