Serhiy Storchaka <[email protected]> added the comment:
It is a bug because there is a difference between the following cases:
@skip("skipped")
def test1(self):
...
@other_decorator
@skip("skipped")
def test2(self):
...
def test2(self):
self.skipTest("skipped")
...
None is only returned in the first case. In other two cases a TestResult is
returned with information about skipping.
It is obvious that it was unintentionally.
I just have fixed similar bug about calling stopTestRun() (issue44955).
Iman, please add tests and a NEWS entry. You can use tests added in issue44955
as an example.
----------
components: +Library (Lib)
nosy: +serhiy.storchaka
stage: -> test needed
type: -> behavior
versions: +Python 3.10, Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue41620>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com