New submission from Serhiy Storchaka <storchaka+cpyt...@gmail.com>:

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

----------
components: Tests
messages: 401687
nosy: erlendaasland, ghaering, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Rewrite loading sqlite3 tests
type: enhancement
versions: Python 3.11

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue45181>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to