#13934: document sqlite version strings, use correct one in test.

This commit is contained in:
R David Murray 2013-01-10 20:18:21 -05:00
parent b52312923b
commit 3f7beb99dd
2 changed files with 24 additions and 2 deletions

View file

@ -47,9 +47,9 @@ class CollationTests(unittest.TestCase):
except sqlite.ProgrammingError as e:
pass
@unittest.skipIf(sqlite.sqlite_version_info < (3, 2, 1),
'old SQLite versions crash on this test')
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 -((x > y) - (x < y))