Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

GH-93115: Fix error code tests in test_sqlite3.test_dbapi#93116

Merged
erlend-aasland merged 1 commit into
python:mainpython/cpython:mainfrom
The-Compiler:fix-sqliteCopy head branch name to clipboard
May 23, 2022
Merged

GH-93115: Fix error code tests in test_sqlite3.test_dbapi#93116
erlend-aasland merged 1 commit into
python:mainpython/cpython:mainfrom
The-Compiler:fix-sqliteCopy head branch name to clipboard

Conversation

@The-Compiler

Copy link
Copy Markdown
Contributor

They used sqlite.version_info (2.6.0 for the past 12 years) rather than .sqlite_version_info. Also, the last statement raised a NameError.

Runs fine for me on Archlinux with sqlite 3.38.5.

Closes #93115.

They used sqlite.version_info (2.6.0 for the past 12 years) rather than .sqlite_version_info. Also, the last statement raised a NameError.
@erlend-aasland

Copy link
Copy Markdown
Contributor

Thanks for the report and fix, and thanks for your interest in improving CPython!

@erlend-aasland erlend-aasland added the needs backport to 3.11 only security fixes label May 23, 2022
@miss-islington

Copy link
Copy Markdown
Contributor

Thanks @The-Compiler for the PR, and @erlend-aasland for merging it 🌮🎉.. I'm working now to backport this PR to: 3.11.
🐍🍒⛏🤖

@bedevere-bot bedevere-bot removed the needs backport to 3.11 only security fixes label May 23, 2022
@bedevere-bot

Copy link
Copy Markdown

GH-93128 is a backport of this pull request to the 3.11 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 23, 2022
…ythonGH-93116)

(cherry picked from commit d5f0dd1)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
miss-islington added a commit that referenced this pull request May 23, 2022
(cherry picked from commit d5f0dd1)

Co-authored-by: Florian Bruhin <me@the-compiler.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

test_sqlite3.test_dbapi: Extended error codes aren't actually tested

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.