Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions Lib/test/lazy_imports_all_exclude.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ test_json
test_pkg
test_profile
test_profiling
test_pyrepl
test_subprocess
test_symtable
test_tools
test_trace
test_type_annotations
test_unittest
4 changes: 3 additions & 1 deletion Lib/unittest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ def testMultiply(self):
enterModuleContext)
from .suite import BaseTestSuite, TestSuite # noqa: F401
from .loader import TestLoader, defaultTestLoader
from .main import TestProgram, main # noqa: F401
from .main import TestProgram
# A lazily imported 'main' would be rebound to the submodule once it loads.
main = TestProgram
from .runner import TextTestRunner, TextTestResult
from .signals import installHandler, registerResult, removeResult, removeHandler
# IsolatedAsyncioTestCase will be imported lazily.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
:func:`unittest.main` no longer resolves to the :mod:`!unittest.main`
submodule when lazy imports are enabled with ``-X lazy_imports=all``.
Loading