summaryrefslogtreecommitdiffstats
path: root/Lib/unittest/test/test_skipping.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-36674: Honour the skipping decorators in TestCase.debug() (GH-28446)Miss Islington (bot)2021-09-181-0/+66
| | | | | | | | | | | unittest.TestCase.debug() raises now a SkipTest if the class or the test method are decorated with the skipping decorator. Previously it only raised a SkipTest if the test method was decorated with other decorator in addition to the skipping decorator, or if SkipTest was explicitly raised in the test or setup methods. (cherry picked from commit dea59cf88adf5d20812edda330e085a4695baba4) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-45102: unittest: add tests for skipping and errors in cleanup (GH-28166)Miss Islington (bot)2021-09-051-0/+138
| | | | | (cherry picked from commit 28264269de9ff88d9ee7110fc56ac2d2db275bec) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-41620: TestCase.run() now always return a TestResult instance (GH-28030)Miss Islington (bot)2021-08-301-23/+30
| | | | | | | | | Previously it returned None if the test class or method was decorated with a skipping decorator. Co-authored-by: Iman Tabrizian <iman.tabrizian@gmail.com> (cherry picked from commit 7e246a3a7b43762480ee4fe0cfb859e8e997a8c8) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-44955: Always call stopTestRun() for implicitly created TestResult ↵Miss Islington (bot)2021-08-221-1/+49
| | | | | | | | | | | objects (GH-27831) Method stopTestRun() is now always called in pair with method startTestRun() for TestResult objects implicitly created in TestCase.run(). Previously it was not called for test methods and classes decorated with a skipping decorator. (cherry picked from commit a9640d75531d6cbbfd254b65435f238c26bf5cd9) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-34596: Fallback to a default reason when @unittest.skip is uncalled (#9082)Naitree Zhu2019-09-091-0/+11
| | | | | | | | * bpo-34596: Fallback to a default reason when @unittest.skip is uncalled * Change default reason to empty string * Fix rst formatting of NEWS entry
* Issue #21112: Fix regression in unittest.expectedFailure on subclasses.Robert Collins2015-08-271-0/+33
| | | | Patch from Berker Peksag.
* #22092: use absolute imports in unittest tests. Patch by Vajrasky Kok.Ezio Melotti2014-08-071-1/+1
|
* Fixes Issue #20165: The unittest module no longer considers tests marked withGregory P. Smith2014-01-201-2/+2
| | | | @expectedFailure successful if they pass.
* Issue #19013: add unittest.main() epilogs to unittest's own test modulesAntoine Pitrou2013-09-131-0/+4
|
* Issue #16997: unittest.TestCase now provides a subTest() context manager to ↵Antoine Pitrou2013-03-201-0/+74
| | | | procedurally generate, in an easy way, small test instances.
* Issue #14664: It is now possible to use @unittest.skip{If,Unless} on a test ↵Antoine Pitrou2012-04-251-0/+15
| | | | class that doesn't inherit from TestCase (i.e. a mixin).
* Breaking test_unittest.py into a package. Manual merge of revision 79432.Michael Foord2010-03-271-0/+134