summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test/testmock/testsealable.py
Commit message (Collapse)AuthorAgeFilesLines
* Mock 100% coverage (GH-13045)Chris Withers2019-05-011-7/+2
| | | | | | | | | | | This was achieved by: * moving many pass statements in tests onto their own lines, so they pass line coverage and can match an easy ignore pattern if branch coverage is added later. * removing code that cannot be reached. * removing long-disabled tests. * removing unused code. * adding tests for uncovered code It turned out that removing `if __name__ == '__main__'` blocks that run unittest.main() at the bottom of test files was surprisingly contentious, so they remain and can be filtered out with an appropriate .coveragerc.
* bpo-30541: Add new method to seal mocks (GH61923)Mario Corchero2017-10-171-0/+181
The new method allows the developer to control when to stop the feature of mocks that automagically creates new mocks when accessing an attribute that was not declared before Signed-off-by: Mario Corchero <mariocj89@gmail.com>