This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Tabrizian, ezio.melotti, iritkatriel, michael.foord, rbcollins, serhiy.storchaka, terry.reedy
Date 2021-08-22.09:05:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1629623147.29.0.661728086112.issue41620@roundup.psfhosted.org>
In-reply-to
Content
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.
History
Date User Action Args
2021-08-22 09:05:47serhiy.storchakasetrecipients: + serhiy.storchaka, terry.reedy, rbcollins, ezio.melotti, michael.foord, iritkatriel, Tabrizian
2021-08-22 09:05:47serhiy.storchakasetmessageid: <1629623147.29.0.661728086112.issue41620@roundup.psfhosted.org>
2021-08-22 09:05:47serhiy.storchakalinkissue41620 messages
2021-08-22 09:05:47serhiy.storchakacreate