Issue 20955: Unexpected behavior in sqlite3.Connection.set_progress_handler (original) (raw)

Issue20955

Created on 2014-03-17 11:05 by klrkdekira, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (2)
msg213851 - (view) Author: cheeleong (klrkdekira) Date: 2014-03-17 11:05
I discovered this bug accidentally when i'm trying to test the Python 3.4 package $ make test I've encountered the unittest assertion error at CheckOpcodeCount with the message, 5 is not greater than 5. at line 144 here http://hg.python.org/cpython/file/04f714765c13/Lib/sqlite3/test/hooks.py I read this http://docs.python.org/2/library/sqlite3.html#sqlite3.Connection.set_progress_handler As I understood, n is the step. I took it out and tried to test it with Python 2.7 and 3.3.5. But the expected results was as the same as 3.4. I've tried to replace the n with others number and the results returned don't really look like n is the step. I have no idea if I'm wrong about this. But #python recommended me to submit this as a ticket.
msg213852 - (view) Author: cheeleong (klrkdekira) Date: 2014-03-17 11:36
Found out about this is a duplicate http://bugs.python.org/issue20901
History
Date User Action Args
2022-04-11 14:58:00 admin set github: 65154
2014-03-17 11:52:21 berker.peksag set status: open -> closedsuperseder: test_sqlite fails with SQLite 3.8.4stage: resolved
2014-03-17 11:36:04 klrkdekira set resolution: duplicatemessages: +
2014-03-17 11:05:58 klrkdekira create