This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Rewrite loading sqlite3 tests
Type: enhancement Stage: resolved
Components: Tests Versions: Python 3.11
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: erlendaasland, ghaering, serhiy.storchaka
Priority: normal Keywords: patch

Created on 2021-09-13 07:10 by serhiy.storchaka, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 28304 merged serhiy.storchaka, 2021-09-13 07:12
Messages (2)
msg401687 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-09-13 07:10
The proposed PR rewrites the loading of sqlite3 tests. Instead of explicitly enumerating test modules and test classes in every module, and manually creating test suites, it uses unittest discover ability. Every new test files and test classes will be automatically added to tests.

As a side effect, unittest filtering by pattern works now.

$ ./python -m test.test_sqlite -vk long
test_sqlite: testing with version '2.6.0', sqlite_version '3.31.1'
test_func_return_long_long (sqlite3.test.test_userfunctions.FunctionTests) ... ok
test_param_long_long (sqlite3.test.test_userfunctions.FunctionTests) ... ok

----------------------------------------------------------------------
Ran 2 tests in 0.001s

OK
msg401697 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2021-09-13 11:16
New changeset 3e19409d6443c66a6a7d62f58b2bb4e8330e56c4 by Serhiy Storchaka in branch 'main':
bpo-45181: Simplify loading sqlite3 tests (GH-28304)
https://github.com/python/cpython/commit/3e19409d6443c66a6a7d62f58b2bb4e8330e56c4
History
Date User Action Args
2022-04-11 14:59:49adminsetgithub: 89344
2021-09-13 11:20:36serhiy.storchakasetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2021-09-13 11:16:30serhiy.storchakasetmessages: + msg401697
2021-09-13 07:12:58serhiy.storchakasetkeywords: + patch
stage: patch review
pull_requests: + pull_request26718
2021-09-13 07:10:10serhiy.storchakacreate