-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test_sqlite3.test_dbapi
: Extended error codes aren't actually tested
#93115
Labels
Comments
Thanks! |
Repository owner
moved this from TODO: Bugs
to Done
in sqlite3 issues
May 23, 2022
erlend-aasland
pushed a commit
that referenced
this issue
May 23, 2022
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
May 23, 2022
…ythonGH-93116) (cherry picked from commit d5f0dd1) Co-authored-by: Florian Bruhin <[email protected]>
miss-islington
added a commit
that referenced
this issue
May 23, 2022
(cherry picked from commit d5f0dd1) Co-authored-by: Florian Bruhin <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Bug report
In 456e27a / GH-28076, @erlend-aasland added extended error codes to
test_module_constants
- however, they usesqlite.version_info
, documented as (emphasis mine):Which has been set to "2.6.0" for the past 12 years or so:
cpython/Modules/_sqlite/module.h
Line 29 in a458be3
Causing that code to never be run at all.
sqlite.sqlite_version_info
should probably be used instead.Additionally, the last statement does:
cpython/Lib/test/test_sqlite3/test_dbapi.py
Line 300 in a458be3
instead of
consts.append
, which would cause aNameError
if the conditions above were correct.Preparing a PR to fix this.
(Found by running
flake8
overLib/
out of curiosity, see #93010 (comment))Your environment
The text was updated successfully, but these errors were encountered: