mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Issue #22002: Make full use of test discovery in test sub-packages.
Adds `load_package_tests` function to test.support, uses it in test_asyncio, test_email, test_json, test_tools, test_importlib and all test_importlib sub-packages to implement test discovery.
This commit is contained in:
parent
c4c464911a
commit
f012ba42fe
21 changed files with 104 additions and 169 deletions
|
|
@ -1,9 +1,4 @@
|
|||
"""Run importlib's test suite.
|
||||
from . import load_tests
|
||||
import unittest
|
||||
|
||||
Specifying the ``--builtin`` flag will run tests, where applicable, with
|
||||
builtins.__import__ instead of importlib.__import__.
|
||||
|
||||
"""
|
||||
if __name__ == '__main__':
|
||||
from . import test_main
|
||||
test_main()
|
||||
unittest.main()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue