#25624: Autoreload fails if jinja2.ModuleLoader used
-------------------------------------+-------------------------------------
Reporter: svartalf | Owner: nobody
Type: Bug | Status: new
Component: Utilities | Version: 1.8
Severity: Normal | Resolution:
Keywords: autoreload, jinja2, | Triage Stage: Accepted
ModuleLoader |
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by carljm):
@hackerdd That fix looks fine to me. I don't think it should actually
change the behavior, since modules without `__file__` were excluded later
on anyway. There's nothing we can do in the autoreloader with a module
that doesn't have a `__file__`.
I think this should be testable without too much difficulty, just by
inserting a problematic entry into `sys.modules` (in the test - and make
sure it gets removed after the test, using a `finally` block) and then
calling the `gen_filenames` function.
--
Ticket URL: <https://code.djangoproject.com/ticket/25624#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.97c64ae052a57262106f5d0d8bc5a1d8%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.