Skip to content
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

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

Merged
merged 1 commit into from May 23, 2022

Conversation

The-Compiler
Copy link
Contributor

@The-Compiler The-Compiler commented May 23, 2022

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 erlend-aasland merged commit d5f0dd1 into python:main May 23, 2022
12 checks passed
@erlend-aasland
Copy link
Contributor

erlend-aasland commented May 23, 2022

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

@miss-islington
Copy link
Contributor

miss-islington commented May 23, 2022

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

bedevere-bot commented May 23, 2022

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