#17928: Tests with import time dependency on DB fail
-----------------------------------+--------------------------------------
     Reporter:  boxm               |                    Owner:  nobody
         Type:  Uncategorized      |                   Status:  closed
    Component:  Testing framework  |                  Version:  SVN
     Severity:  Normal             |               Resolution:  wontfix
     Keywords:                     |             Triage Stage:  Unreviewed
    Has patch:  0                  |      Needs documentation:  0
  Needs tests:  0                  |  Patch needs improvement:  0
Easy pickings:  0                  |                    UI/UX:  0
-----------------------------------+--------------------------------------
Changes (by carljm):

 * status:  reopened => closed
 * resolution:   => wontfix


Comment:

 Marking wontfix, as this is a backwards-incompatible change without
 sufficient justification; it doesn't permit anything that isn't better
 handled with lazy-loading/caching, and it opens the door for significant
 bugs to go undetected. Import-time database queries are not supported.
 (Note also that it's not just the test-runner; putting an import-time
 database query in the wrong place in your codebase can easily cause
 circular import troubles).

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17928#comment:5>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to