The test client calls `get_response()`, but since
`@override_settings(ROOT_URLCONF)` doesn't clear it, further `reverse`
outside of the test client may fail.
This only affects single tests with multiple `override_settings` because
`SimpleTestCase` clears the urlconf between tests.
--
Ticket URL: <https://code.djangoproject.com/ticket/22572>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_docs: => 0
* has_patch: 0 => 1
* needs_tests: => 0
* needs_better_patch: => 0
Comment:
PR https://github.com/django/django/pull/2631.
--
Ticket URL: <https://code.djangoproject.com/ticket/22572#comment:1>
Comment (by anubhav9042):
I think the issue being raised is valid and the PR opened is good to go.
--
Ticket URL: <https://code.djangoproject.com/ticket/22572#comment:2>
* stage: Unreviewed => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/22572#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"942556df2ffd3276dc127edd3cbb9d177095d882"]:
{{{
#!CommitTicketReference repository=""
revision="942556df2ffd3276dc127edd3cbb9d177095d882"
Fixed #22572 -- override_settings(ROOT_URLCONF) didn't clear
urlresolvers._urlconfs.
Thanks Anubhav Joshi and Tim Graham for the reviews.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22572#comment:4>