This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Unexpected behavior in sqlite3.Connection.set_progress_handler
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.3, Python 3.4, Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: test_sqlite fails with SQLite 3.8.4
View: 20901
Assigned To: Nosy List: klrkdekira
Priority: normal Keywords:

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:00adminsetgithub: 65154
2014-03-17 11:52:21berker.peksagsetstatus: open -> closed
superseder: test_sqlite fails with SQLite 3.8.4
stage: resolved
2014-03-17 11:36:04klrkdekirasetresolution: duplicate
messages: + msg213852
2014-03-17 11:05:58klrkdekiracreate