mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
#13934: document sqlite version strings, use correct one in test.
This commit is contained in:
parent
b52312923b
commit
3f7beb99dd
2 changed files with 24 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue