Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d394455

Browse files
committed
merge #13934: document sqlite version strings, use correct one in test.
2 parents 36f7b97 + 3f7beb9 commit d394455

2 files changed

Lines changed: 24 additions & 2 deletions

File tree

Doc/library/sqlite3.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,28 @@ Module functions and constants
109109
------------------------------
110110

111111

112+
.. data:: version
113+
114+
The version number of this module, as a string. This is not the version of
115+
the SQLite library.
116+
117+
118+
.. data:: version_info
119+
120+
The version number of this module, as a tuple of integers. This is not the
121+
version of the SQLite library.
122+
123+
124+
.. data:: sqlite_version
125+
126+
The version number of the run-time SQLite library, as a string.
127+
128+
129+
.. data:: sqlite_version_info
130+
131+
The version number of the run-time SQLite library, as a tuple of integers.
132+
133+
112134
.. data:: PARSE_DECLTYPES
113135

114136
This constant is meant to be used with the *detect_types* parameter of the

Lib/sqlite3/test/hooks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ def CheckCreateCollationNotAscii(self):
4747
except sqlite.ProgrammingError as e:
4848
pass
4949

50+
@unittest.skipIf(sqlite.sqlite_version_info < (3, 2, 1),
51+
'old SQLite versions crash on this test')
5052
def CheckCollationIsUsed(self):
51-
if sqlite.version_info < (3, 2, 1): # old SQLite versions crash on this test
52-
return
5353
def mycoll(x, y):
5454
# reverse order
5555
return -((x > y) - (x < y))

0 commit comments

Comments
 (0)