Skip to content

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

Merged
erlend-aasland merged 1 commit into
python:mainfrom
The-Compiler:fix-sqlite
May 23, 2022
Merged

erlend-aasland merged 1 commit into
python:mainfrom
The-Compiler:fix-sqlite

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
miss-islington added a commit that referenced this pull request May 23, 2022
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