mirror of
https://github.com/python/cpython.git
synced 2025-08-01 07:33:08 +00:00
- Added version checks in C code to make sure we don't trigger bugs in older
SQLite versions. - Added version checks in test suite so that we don't execute tests that we know will fail with older (buggy) SQLite versions. Now, all tests should run against all SQLite versions from 3.0.8 until 3.3.6 (latest one now). The sqlite3 module can be built against all these SQLite versions and the sqlite3 module does its best to not trigger bugs in SQLite, but using SQLite 3.3.3 or later is recommended.
This commit is contained in:
parent
69f6168b76
commit
b2e8816403
3 changed files with 27 additions and 4 deletions
|
@ -48,6 +48,8 @@ class CollationTests(unittest.TestCase):
|
|||
pass
|
||||
|
||||
def CheckCollationIsUsed(self):
|
||||
if sqlite.version_info < (3, 2, 1): # old SQLite versions crash on this test
|
||||
return
|
||||
def mycoll(x, y):
|
||||
# reverse order
|
||||
return -cmp(x, y)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue