Issue36825
Created on 2019-05-07 08:35 by remi.lapeyre, last changed 2022-04-11 14:59 by admin.
| Pull Requests | |||
|---|---|---|---|
| URL | Status | Linked | Edit |
| PR 13151 | open | remi.lapeyre, 2019-05-07 08:45 | |
| Messages (3) | |||
|---|---|---|---|
| msg341697 - (view) | Author: Rémi Lapeyre (remi.lapeyre) * | Date: 2019-05-07 08:35 | |
Hi, to make unittest more extensible and for issue 18765 (having a way to run pdb when tests fail), I would like to make TestCase aware of the command line arguments given to the TestProgram so they can adapt their behavior based on them. I suggested this change on python-ideas (https://mail.python.org/pipermail/python-ideas/2019-March/055842.html) but it did not get much attention. I'm opening a PR in the hope to get more feedback and will start writing documentation. Please comment if this is not appropriate or regarding anything I might have not thought of. |
|||
| msg367848 - (view) | Author: Rémi Lapeyre (remi.lapeyre) * | Date: 2020-05-01 14:24 | |
Bumping this issue as issue 37873 that wants to add a new -j argument to unittest got some attention lately. This PR makes the Test Cases aware of the command line arguments given to unittest.main() and is needed to add the --pdb argument proposed in issue 18765 to run pdb.post_mortem() when an exception occurs during a test. Both this issue and #18765 would be very useful to augment unittest. |
|||
| msg367874 - (view) | Author: Terry J. Reedy (terry.reedy) * ![]() |
Date: 2020-05-01 18:46 | |
Since test modules can already be run in parallel, #37873 does not seem relevant here. (And I agree with the intent of that.) I would be reluctant to add a mechanism with no current use, so I would not apply absent a decision to add one. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022-04-11 14:59:14 | admin | set | github: 81006 |
| 2020-05-01 18:46:56 | terry.reedy | set | nosy:
+ rbcollins, ezio.melotti, michael.foord messages: + msg367874 |
| 2020-05-01 14:24:47 | remi.lapeyre | set | nosy:
+ terry.reedy, gregory.p.smith messages:
+ msg367848 |
| 2019-05-07 08:45:50 | remi.lapeyre | set | keywords:
+ patch stage: patch review pull_requests: + pull_request13066 |
| 2019-05-07 08:35:49 | remi.lapeyre | create | |
