Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
3f7beb99
Commit
3f7beb99
authored
Jan 10, 2013
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#13934: document sqlite version strings, use correct one in test.
parent
b5231292
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
Doc/library/sqlite3.rst
Doc/library/sqlite3.rst
+22
-0
Lib/sqlite3/test/hooks.py
Lib/sqlite3/test/hooks.py
+2
-2
No files found.
Doc/library/sqlite3.rst
View file @
3f7beb99
...
...
@@ -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
This constant is meant to be used with the *detect_types* parameter of the
...
...
Lib/sqlite3/test/hooks.py
View file @
3f7beb99
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment