#23598: The testing framework has leaky scoping when defining models in tests
-----------------------------------+--------------------------------------
Reporter: nalourie | Owner: nobody
Type: Bug | Status: closed
Component: Testing framework | Version: 1.6
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by aaugustin):
* status: new => closed
* resolution: => fixed
Comment:
Indeed the bug was fixed in Django 1.7 by the app-loading refactor --
which I didn't find particularly easy.
That refactor cannot be backported to Django 1.6 because it introduces
several backwards incompatibilities.
The specific problem you mention cannot be fixed in Django 1.6 because
some apps (eg. django-oscar) rely on the second definition of a model
being silently ignored.
--
Ticket URL: <https://code.djangoproject.com/ticket/23598#comment:3>
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/066.a42a0fc7e49898fb6854341d908280e5%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.