mirror of
				https://github.com/django/django.git
				synced 2025-10-31 09:41:08 +00:00 
			
		
		
		
	[1.7.x] Fixed #22102 -- Made SimpleTestCase tests run before unittest.TestCase ones
Thanks aptiko for the report and Tim Graham for the review.
Backport of 3e3a7372f5 from master.
			
			
This commit is contained in:
		| @@ -221,13 +221,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:: | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user