classification
Title: Python Unittest does not return results object when the test is skipped
Type: Stage:
Components: Versions: Python 3.11
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: Tabrizian, ezio.melotti, iritkatriel, michael.foord, rbcollins, terry.reedy
Priority: normal Keywords: easy

Created on 2020-08-23 17:50 by Tabrizian, last changed 2021-05-16 23:37 by Tabrizian.

Pull Requests
URL Status Linked Edit
PR 21944 open Tabrizian, 2020-08-23 17:50
Messages (4)
msg375820 - (view) Author: Iman Tabrizian (Tabrizian) * Date: 2020-08-23 17:50
Result object is null when a test case is skipeed.
msg376074 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2020-08-29 20:02
You should justify the proposed change here on the issue, and see if the doc says anything about the issue either way.
msg393760 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2021-05-16 21:10
I agree with Iman that this looks like a bug because the code updates the result object with skip info but then doesn't return it.

The patch needs a unit test covering this, as well as probably a doc update.
msg393769 - (view) Author: Iman Tabrizian (Tabrizian) * Date: 2021-05-16 23:37
I'll add a documentation and unit test and update the PR.
History
Date User Action Args
2021-05-16 23:37:08Tabriziansetmessages: + msg393769
2021-05-16 21:10:11iritkatrielsetmessages: + msg393760
2021-05-16 21:08:58iritkatrielsetmessages: - msg393489
2021-05-16 21:08:49iritkatrielsetmessages: - msg384971
2021-05-12 09:07:55iritkatrielsetversions: + Python 3.11, - Python 3.9
2021-05-12 09:07:49iritkatrielsetkeywords: + easy

messages: + msg393489
2021-01-12 18:10:46iritkatrielsetnosy: + iritkatriel
messages: + msg384971
2020-08-29 20:02:16terry.reedysetnosy: + ezio.melotti, terry.reedy, michael.foord, rbcollins
messages: + msg376074
2020-08-23 17:50:44Tabriziancreate