summaryrefslogtreecommitdiffstats
path: root/Lib/sqlite3/test/hooks.py
diff options
context:
space:
mode:
authorGerhard Häring <gh@ghaering.de>2006-06-14 22:28:37 (GMT)
committerGerhard Häring <gh@ghaering.de>2006-06-14 22:28:37 (GMT)
commitb2e881640377945716a5f4b147f8438f9e4738de (patch)
treee4a52a0b9356e3c53248723e7f65565de694d6ce /Lib/sqlite3/test/hooks.py
parent69f6168b766d3fb8fbd0dec8cbeaf97ce564e2c4 (diff)
downloadcpython-b2e881640377945716a5f4b147f8438f9e4738de.zip
cpython-b2e881640377945716a5f4b147f8438f9e4738de.tar.gz
cpython-b2e881640377945716a5f4b147f8438f9e4738de.tar.bz2
- 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.
Diffstat (limited to 'Lib/sqlite3/test/hooks.py')
-rw-r--r--Lib/sqlite3/test/hooks.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/sqlite3/test/hooks.py b/Lib/sqlite3/test/hooks.py
index b10b3ef..7deab98 100644
--- a/Lib/sqlite3/test/hooks.py
+++ b/Lib/sqlite3/test/hooks.py
@@ -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)