A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2001-November/018555.html below:

[Python-Dev] order of unittest.TestCase execution?

[Python-Dev] order of unittest.TestCase execution? [Python-Dev] order of unittest.TestCase execution?Barry A. Warsaw barry@zope.com
Mon, 12 Nov 2001 10:04:54 -0500
>>>>> "SM" == Skip Montanaro <skip@pobox.com> writes:

    SM> No, I was just trying to mimic the structure of the
    SM> test_xmlrpc.py module.  It put all the cases into one class,
    SM> so I did to.  I realized I wanted to run the creation test
    SM> before the others and noticed that it was executing them in
    SM> alphabetical order.  I was just wondering if I could rely on
    SM> that or if that was just a quirk of either the current
    SM> test_support or unittest implementations and couldn't be
    SM> relied on.

I don't think you should count on execution order.  I don't think it's
guaranteed and it will make your tests much more fragile.

-Barry



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4