Title: Make TestCase aware of the command line arguments given to TestProgram
Type: enhancement Stage: patch review
Components: Tests Versions: Python 3.8
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: remi.lapeyre
Priority: normal Keywords: patch

Created on 2019-05-07 08:35 by remi.lapeyre, last changed 2019-05-07 08:45 by remi.lapeyre.

Pull Requests
URL Status Linked Edit
PR 13151 open remi.lapeyre, 2019-05-07 08:45
Messages (1)
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 ( 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.
Date User Action Args
2019-05-07 08:45:50remi.lapeyresetkeywords: + patch
stage: patch review
pull_requests: + pull_request13066
2019-05-07 08:35:49remi.lapeyrecreate