FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-46425: fix direct invocation of `test_sqlite3` by sobolevn · Pull Request #30676 · python/cpython · GitHub

Repository navigation

bpo-46425: fix direct invocation of test_sqlite3 - #30676

Merged
asvetlov merged 1 commit into
python:mainfrom
sobolevn:issue-46425-2
Jan 22, 2022
Merged

asvetlov merged 1 commit into
python:mainfrom
sobolevn:issue-46425-2

Conversation

sobolevn commented Jan 18, 2022 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

This fixes ./python.exe Lib/test/test_sqlite3/... tests.
Without this change it fails:

» ./python.exe Lib/test/test_sqlite3/test_transactions.py 
Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_sqlite3/test_transactions.py", line 26, in <module>
    from .test_dbapi import memory_database
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: attempted relative import with no known parent package

Refs #30666
CC @corona10 as my mentor.

https://bugs.python.org/issue46425

bedevere-bot added tests Tests in the Lib/test dir awaiting review labels Jan 18, 2022
zware requested a review from erlend-aasland January 18, 2022 22:43
zware changed the title bpo-46425: fix direct invokation of test_sqlite3 bpo-46425: fix direct invocation of test_sqlite3 Jan 18, 2022

erlend-aasland left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

lgtm, thanks!

erlend-aasland commented Jan 18, 2022 •
edited
Loading

Copy link
Copy Markdown
Contributor

This should not be backported. The sqlite3 test suite has changed a lot since 3.10 and 3.9. I don't think this would apply cleanly at all. IMO, I don't think it is worth backporting it.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

7 participants


Back | FazBrowse Home | New Git URL