#21977: Deprecate SimpleTestCase.urls in favor of override_settings
-------------------------------------+-------------------------------------
Reporter: timo | Owner:
Type: | anubhav9042
Cleanup/optimization | Status: closed
Component: Testing framework | Version: master
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by lanzz):
While this fix will clear the cache ''when the ROOT_URLCONF is
overridden'', it does nothing to clear them ''once that override goes out
of scope''. As a result once you override ROOT_URLCONF, that override
leaks out to all subsequent unit tests if they don't explicitly override
it too.
--
Ticket URL: <https://code.djangoproject.com/ticket/21977#comment:14>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/062.808a31ee823120aa9be1725f6bb51d59%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.