Skip to content

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

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

Merged
merged 1 commit into from
May 23, 2022
Merged

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

merged 1 commit into from
May 23, 2022

Conversation

The-Compiler
Copy link
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
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
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

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