Skip to content

Make 3.10 sqlite3 tests run #94998

@terryjreedy

Description

@terryjreedy

On my Windows 10, after fresh repository update and debug build, 3.10 sqlite3 tests do not run.
(3.11 and 3.12 are fine.) In 3.10, test_sqlite/ only contains test_dbapi.py

python -m test test_sqlite3 is OK after no tests run. (I though we made this an error.)
python -m test.test_sqlite3 fails because test_sqlite3/ is missing __main__.py, as well as __init__.py

In 3.11, test_sqlite3.__main__.py is

from test.test_sqlite3 import load_tests  # Needed for the "load tests" protocol.
import unittest

if __name__ == "__main__":
    unittest.main()

The comment seems not needed. The other 3.10 test.test_x directories all run and have variations of this. Some have from . import load_tests. Some have unittest.main('test.test_x') instead of a load_tests import. Most omit the redundant if-clause.

After adding __main__.py, tests still do not run because __init__.py is needed. I may try to do a PR tomorrow.

Metadata

Metadata

Labels

3.10only security fixestopic-sqlite3type-bugAn unexpected behavior, bug, or error

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy