mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
merge #13934: document sqlite version strings, use correct one in test.
This commit is contained in:
commit
d394455aae
2 changed files with 24 additions and 2 deletions
|
@ -109,6 +109,28 @@ Module functions and constants
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
||||||
|
|
||||||
|
.. data:: version
|
||||||
|
|
||||||
|
The version number of this module, as a string. This is not the version of
|
||||||
|
the SQLite library.
|
||||||
|
|
||||||
|
|
||||||
|
.. data:: version_info
|
||||||
|
|
||||||
|
The version number of this module, as a tuple of integers. This is not the
|
||||||
|
version of the SQLite library.
|
||||||
|
|
||||||
|
|
||||||
|
.. data:: sqlite_version
|
||||||
|
|
||||||
|
The version number of the run-time SQLite library, as a string.
|
||||||
|
|
||||||
|
|
||||||
|
.. data:: sqlite_version_info
|
||||||
|
|
||||||
|
The version number of the run-time SQLite library, as a tuple of integers.
|
||||||
|
|
||||||
|
|
||||||
.. data:: PARSE_DECLTYPES
|
.. data:: PARSE_DECLTYPES
|
||||||
|
|
||||||
This constant is meant to be used with the *detect_types* parameter of the
|
This constant is meant to be used with the *detect_types* parameter of the
|
||||||
|
|
|
@ -47,9 +47,9 @@ class CollationTests(unittest.TestCase):
|
||||||
except sqlite.ProgrammingError as e:
|
except sqlite.ProgrammingError as e:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@unittest.skipIf(sqlite.sqlite_version_info < (3, 2, 1),
|
||||||
|
'old SQLite versions crash on this test')
|
||||||
def CheckCollationIsUsed(self):
|
def CheckCollationIsUsed(self):
|
||||||
if sqlite.version_info < (3, 2, 1): # old SQLite versions crash on this test
|
|
||||||
return
|
|
||||||
def mycoll(x, y):
|
def mycoll(x, y):
|
||||||
# reverse order
|
# reverse order
|
||||||
return -((x > y) - (x < y))
|
return -((x > y) - (x < y))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue