[New-bugs-announce] [issue36825] Make TestCase aware of the command line arguments given to TestProgram

Rémi Lapeyre report at bugs.python.org
Tue May 7 04:35:49 EDT 2019


New submission from Rémi Lapeyre <remi.lapeyre at henki.fr>:

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.

----------
components: Tests
messages: 341697
nosy: remi.lapeyre
priority: normal
severity: normal
status: open
title: Make TestCase aware of the command line arguments given to TestProgram
type: enhancement
versions: Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36825>
_______________________________________


More information about the New-bugs-announce mailing list