◐ Shell
clean mode source ↗

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

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