#26603: Can't use lazy objects as template names with cached loader anymore
-------------------------------------+-------------------------------------
     Reporter:  sephii               |                    Owner:  charettes
         Type:  Bug                  |                   Status:  closed
    Component:  Template system      |                  Version:  1.9
     Severity:  Release blocker      |               Resolution:  fixed
     Keywords:                       |             Triage Stage:  Ready for
                                     |  checkin
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by vytisb):

 The last commit breaks tests in 1.9 because `lazystr` doesn't exist yet.

 {{{
 ======================================================================
 ERROR: template_tests.test_loaders (unittest.loader.ModuleImportFailure)
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File "/usr/lib64/python3.4/unittest/case.py", line 58, in
 testPartExecutor
     yield
   File "/usr/lib64/python3.4/unittest/case.py", line 577, in run
     testMethod()
   File "/usr/lib64/python3.4/unittest/loader.py", line 32, in testFailure
     raise exception
 ImportError: Failed to import test module: template_tests.test_loaders
 Traceback (most recent call last):
   File "/usr/lib64/python3.4/unittest/loader.py", line 312, in _find_tests
     module = self._get_module_from_name(name)
   File "/usr/lib64/python3.4/unittest/loader.py", line 290, in
 _get_module_from_name
     __import__(name)
   File "/home/vytis/src/django/tests/template_tests/test_loaders.py", line
 16, in <module>
     from django.utils.functional import lazystr
 ImportError: cannot import name 'lazystr'
 }}}

--
Ticket URL: <https://code.djangoproject.com/ticket/26603#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 django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.91eb680e90ed4c597215a5d89da6a5e2%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to