Fixed #27032 -- Prevented setup_test_environment() from being called twice.

This commit is contained in:
Chris Jerdonek 2016-08-08 02:38:10 -07:00 committed by Tim Graham
parent a7863c78b7
commit e7fb724cd2
3 changed files with 20 additions and 0 deletions

View file

@ -364,6 +364,11 @@ Miscellaneous
:meth:`~django.db.models.fields.related.RelatedManager.set` now
clear the ``prefetch_related()`` cache.
* To prevent possible loss of saved settings,
:func:`~django.test.utils.setup_test_environment` now raises an exception if
called a second time before calling
:func:`~django.test.utils.teardown_test_environment`.
.. _deprecated-features-1.11:
Features deprecated in 1.11