#23525: admin/docs/filters|tags __file__ attribute errors for egg extensions
-------------------------------------+-------------------------------------
     Reporter:  welbornprod          |                    Owner:  nobody
         Type:  Bug                  |                   Status:  new
    Component:  contrib.admindocs    |                  Version:  1.7
     Severity:  Normal               |               Resolution:
     Keywords:  __file__             |             Triage Stage:  Accepted
  AttributeError filters tags        |      Needs documentation:  0
    Has patch:  1                    |  Patch needs improvement:  0
  Needs tests:  1                    |                    UI/UX:  0
Easy pickings:  0                    |
-------------------------------------+-------------------------------------

Comment (by welbornprod):

 To be honest I'm not sure how I would test for this. The function has no
 arguments. It depends on `template.get_templatetags_modules()` to gather
 module names, import them, determine the directory for each module, and
 list the directory contents. How could I introduce a module with no
 `__file__` to test with?

 This patch doesn't change the way template libraries are loaded. It just
 lets it fail with a little more grace. If anyone knows how I might go
 about testing this I would be glad to put in the work.

--
Ticket URL: <https://code.djangoproject.com/ticket/23525#comment:6>
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/069.6fbca443bb4de2be6e81321bf50d3b42%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to