unittest: Calling tests in liner number order

John Roth johnroth1 at gmail.com
Fri May 23 11:01:52 EDT 2008


On May 23, 3:36 am, Antoon Pardon <apar... at forel.vub.ac.be> wrote:
> Some time ago I asked whether is would be possible that unittest would
> perform the test in order of appearence in the file.
>
> The answers seemed to be negative. Since I really would like this
> behaviour I took the trouble of looking throught the source and
> I think I found a minor way to get this behaviour.
>
> Now my questions are:
>
> Are other people interested in this behavior?

I'm not. If there are any changes in the current behavior I'd much
prefer that unittest create a random permutation as a way of flushing
out intertest dependencies.

> Does the following patch has a chance of being introduced in the
> standard python distribution?

I certainly hope not!

John Roth
Python FIT




More information about the Python-list mailing list