#21281: Make override_settings act at class level when used as a TestCase
decorator
--------------------------------------+------------------------------------
Reporter: anonymous | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Testing framework | Version: master
Severity: Release blocker | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------
Comment (by tchaumeny):
After some investigation, that seems to be a consequence of a duplicated
`super(..., cls).setUpClass()` in `LiveServerTestCase`:
https://github.com/django/django/blob/52f0b2b62262743d5f935ddae29428e661b5d8ea/django/test/testcases.py#L1210
and
https://github.com/django/django/blob/52f0b2b62262743d5f935ddae29428e661b5d8ea/django/test/testcases.py#L1258
(looks like I introduced that)
If I remove one of those lines, the test passes fine.
--
Ticket URL: <https://code.djangoproject.com/ticket/21281#comment:10>
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/067.43db54756b23788c1ec02b31ac27a4b8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.