Fixed #22102 -- Made SimpleTestCase tests run before unittest.TestCase ones

Thanks aptiko for the reporti and Tim Graham for the review.
This commit is contained in:
Claude Paroz 2014-04-12 11:42:06 +02:00
parent 476db08b16
commit 3e3a7372f5
5 changed files with 83 additions and 9 deletions

View file

@ -206,13 +206,13 @@ the Django test runner reorders tests in the following way:
* All :class:`~django.test.TestCase` subclasses are run first.
* Then, all other unittests (including :class:`unittest.TestCase`,
:class:`~django.test.SimpleTestCase` and
* Then, all other Django-based tests (test cases based on
:class:`~django.test.SimpleTestCase`, including
:class:`~django.test.TransactionTestCase`) are run with no particular
ordering guaranteed nor enforced among them.
* Then any other tests (e.g. doctests) that may alter the database without
restoring it to its original state are run.
* Then any other :class:`unittest.TestCase` tests (including doctests) that may
alter the database without restoring it to its original state are run.
.. note::