Conversation
|
The following commit authors need to sign the Contributor License Agreement: |
Documentation build overview
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#158681
Doc/library/test.rstsaid thatpython -m testcalls a module-leveltest_main()when it exists, and otherwise loads tests withunittest.TestLoader.loadTestsFromModule. It also told readers to calltest.support.reap_children()at the end oftest_main. The docstring ofreap_children()said the same thing.libregrtestdoes not calltest_main(). If the imported module defines it,Lib/test/libregrtest/single.pyraisesException. regrtest reports the module as failed with an uncaught exception (stderr:test <name> crashed; summary:failed (uncaught exception)). Tests are loaded withloadTestsFromModule, which collectsTestCaseclasses and, when the module definesload_tests, runs the suite that function returns. Packages useload_tests, usually viatest.support.load_package_tests, to add tests from submodules.reap_children()is called fromsetUp(),tearDown(), andtearDownModule().The runner is unchanged. This updates the library page and the
reap_children()docstring.