[Python-ideas] Shuffled

Alexander Belopolsky alexander.belopolsky at gmail.com
Wed Sep 7 21:22:00 EDT 2016


On Wed, Sep 7, 2016 at 9:12 PM, Alexander Belopolsky <
alexander.belopolsky at gmail.com> wrote:

> On Wed, Sep 7, 2016 at 8:14 PM, Arek Bulski <arek.bulski at gmail.com> wrote:
> >
> > If you want to see the declarative tests, here it is.
> > https://github.com/construct/construct/blob/master/tests/test_all.py
>
>
> So, why can't you call random.shuffle(all_tests) if you want to run your
> tests in random order?


It may be instructive for you to see how this functionality is implemented
in CPython's own test suit:

https://github.com/python/cpython/blob/276f4ef97a434d4279a2d207daa34cafcf0994f7/Lib/test/libregrtest/main.py#L230
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-ideas/attachments/20160907/42478783/attachment.html>


More information about the Python-ideas mailing list