Storm 0.15 sqlite test failures on Python 2.5
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Storm |
New
|
Undecided
|
Unassigned |
Bug Description
Both test_rowcount_
Relevant package version:
$ rpm -q python python-sqlite2
python-
python-
Note: the same tests fail identically when using Python's bundled sqlite3 module
=======
FAIL: test_rowcount_
-------
Traceback (most recent call last):
File "/home/
2, in test_method_wrapper
result = test_method()
File "/home/
line 390, in test_rowcount_
self.
AssertionError: 0 != 2
=======
FAIL: test_rowcount_
-------
Traceback (most recent call last):
File "/home/
2, in test_method_wrapper
result = test_method()
File "/home/
line 390, in test_rowcount_
self.
AssertionError: 0 != 2
I can't reproduce this problem locally. What version of sqlite are you running there?
Looking at the sqlite release history (http:// sqlite. org/changes. html), one of the fixes in 3.6.5 sounds relevant:
Fixed the truncate optimization so that sqlite3_changes() and total_changes( ) interfaces and the count_changes pragma
sqlite3_
return the correct values.
The test in question is checking rowcount after executing "DELETE FROM test", which would trigger the truncate optimisation code path.