[issue44955] Method stopTestRun() is not always called for skipped tests

Serhiy Storchaka report at bugs.python.org
Thu Aug 19 07:58:46 EDT 2021


New submission from Serhiy Storchaka <storchaka+cpython at gmail.com>:

Method startTestRun() is always called for the TestResult object implicitly created by TestCase.defaultTestResult() when no TestResult object is passed to TestCase.run(). But method stopTestRun() is not always called in pair with startTestRun() for skipped tests. It is only called if SkipTest was raised directly or indirectly (via skipTest()). It is not called if a skipping decorator (@skip, @skipIf, @skipUnless) was used for a method or a class.

----------
components: Library (Lib)
messages: 399911
nosy: ezio.melotti, michael.foord, rbcollins, serhiy.storchaka
priority: normal
severity: normal
status: open
title: Method stopTestRun() is not always called for skipped tests
type: behavior
versions: Python 3.10, Python 3.11, Python 3.9

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue44955>
_______________________________________


More information about the Python-bugs-list mailing list