#23489: Test failures with numpy 1.9
-------------------------------------------+------------------------
Reporter: timgraham | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.7
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
Installing numpy 1.9 and `./runtests template_tests` will give some test
failures like this:
{{{
Template test (Cached='True', TEMPLATE_STRING_IF_INVALID='',
TEMPLATE_DEBUG=True): numpy-array-index02 -- FAILED. Got <type
'exceptions.IndexError'>, exception: index 5 is out of bounds for axis 0
with size 2
Traceback (most recent call last):
File "/home/tim/code/django/tests/template_tests/tests.py", line 596, in
test_templates
output = self.render(test_template, vals)
File "/home/tim/code/django/tests/template_tests/tests.py", line 622, in
render
output = test_template.render(context)
File "/home/tim/code/django/django/template/base.py", line 150, in
render
return self._render(context)
File "/home/tim/code/django/django/test/utils.py", line 89, in
instrumented_test_render
return self.nodelist.render(context)
File "/home/tim/code/django/django/template/base.py", line 853, in
render
bit = self.render_node(node, context)
File "/home/tim/code/django/django/template/debug.py", line 80, in
render_node
return node.render(context)
File "/home/tim/code/django/django/template/debug.py", line 90, in
render
output = self.filter_expression.resolve(context)
File "/home/tim/code/django/django/template/base.py", line 598, in
resolve
obj = self.var.resolve(context)
File "/home/tim/code/django/django/template/base.py", line 739, in
resolve
value = self._resolve_lookup(context)
File "/home/tim/code/django/django/template/base.py", line 769, in
_resolve_lookup
current = current[bit]
IndexError: index 5 is out of bounds for axis 0 with size 2
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/23489>
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/052.6f710e0cb35a87058369bd82a33313b1%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.