[issue36825] Make TestCase aware of the command line arguments given to TestProgram

2020-05-01 Thread Terry J. Reedy


Terry J. Reedy  added the comment:

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.

--
nosy: +ezio.melotti, michael.foord, rbcollins

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36825] Make TestCase aware of the command line arguments given to TestProgram

2020-05-01 Thread Rémi Lapeyre

Rémi Lapeyre  added the comment:

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.

--
nosy: +gregory.p.smith, terry.reedy
versions: +Python 3.9 -Python 3.8

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36825] Make TestCase aware of the command line arguments given to TestProgram

2019-05-07 Thread Rémi Lapeyre

Change by Rémi Lapeyre :


--
keywords: +patch
pull_requests: +13066
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue36825] Make TestCase aware of the command line arguments given to TestProgram

2019-05-07 Thread Rémi Lapeyre

New submission from Rémi Lapeyre :

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 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com