[Python-ideas] Move some regrtest or test.support features into unittest?

Antoine Pitrou solipsis at pitrou.net
Mon Sep 18 06:55:50 EDT 2017


On Mon, 18 Sep 2017 12:16:35 +0200
Victor Stinner <victor.stinner at gmail.com>
wrote:
> Antoine:
> >> * skip a test if it allocates too much memory, command line argument
> >> to specify how many memory a test is allowed to allocate (ex:
> >> --memlimit=2G for 2 GB of memory)  
> >
> > That would be suitable for a plugin if unittest had a plugin
> > architecture, but not as a core functionality IMO.  
> 
> My hidden question is more why unittest doesn't already have a plugin
> system, whereas there are tons on projects based on unittest extending
> its features like pytest, nose, testtools, etc.

Michael Foord or Robert Collins may be able to answer that
question :-)  Though I suspect the answer has mainly to do with lack of
time and the hurdles of backwards compatibility.

Regards

Antoine.




More information about the Python-ideas mailing list