[Python-modules-team] Bug#801554: FTBFS: tests fail with numpy 1.9

Brian May bam at debian.org
Mon Oct 12 01:07:48 UTC 2015


Package: python-django
Version: 1.7.9-1
Severity: serious
Justification: fails to build from source

Fix is available from upstream in the 1.8.x version.

https://github.com/django/django/commit/12809e160995eb617fe394c75e5b9f3211c056ff


test_templates (template_tests.tests.TemplateTests) ... FAIL

======================================================================
FAIL: test_templates (template_tests.tests.TemplateTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/django/tests/template_tests/tests.py", line 617, in test_templates
    ('-' * 70, ("\n%s\n" % ('-' * 70)).join(failures)))
AssertionError: Lists differ: ['Template test (Cached=\'False\', TEMPLAT[8698 chars]2\n'] != []

First list contains 6 additional elements.
First extra element 0:
Template test (Cached='False', TEMPLATE_STRING_IF_INVALID='', TEMPLATE_DEBUG=False): numpy-array-index02 -- FAILED. Got <class 'IndexError'>, exception: index 5 is out of bounds for axis 0 with size 2
Traceback (most recent call last):

  File "/tmp/django/tests/template_tests/tests.py", line 596, in test_templates
    output = self.render(test_template, vals)

  File "/tmp/django/tests/template_tests/tests.py", line 622, in render
    output = test_template.render(context)

  File "/tmp/django/django/template/base.py", line 150, in render
    return self._render(context)

  File "/tmp/django/django/test/utils.py", line 89, in instrumented_test_render
    return self.nodelist.render(context)

  File "/tmp/django/django/template/base.py", line 853, in render
    bit = self.render_node(node, context)

  File "/tmp/django/django/template/base.py", line 867, in render_node
    return node.render(context)

  File "/tmp/django/django/template/base.py", line 907, in render
    output = self.filter_expression.resolve(context)

  File "/tmp/django/django/template/base.py", line 598, in resolve
    obj = self.var.resolve(context)

  File "/tmp/django/django/template/base.py", line 739, in resolve
    value = self._resolve_lookup(context)

  File "/tmp/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


Diff is 10100 characters long. Set self.maxDiff to None to see it. : Tests failed:
----------------------------------------------------------------------
Template test (Cached='False', TEMPLATE_STRING_IF_INVALID='', TEMPLATE_DEBUG=False): numpy-array-index02 -- FAILED. Got <class 'IndexError'>, exception: index 5 is out of bounds for axis 0 with size 2
Traceback (most recent call last):

  File "/tmp/django/tests/template_tests/tests.py", line 596, in test_templates
    output = self.render(test_template, vals)

  File "/tmp/django/tests/template_tests/tests.py", line 622, in render
    output = test_template.render(context)

  File "/tmp/django/django/template/base.py", line 150, in render
    return self._render(context)

  File "/tmp/django/django/test/utils.py", line 89, in instrumented_test_render
    return self.nodelist.render(context)

  File "/tmp/django/django/template/base.py", line 853, in render
    bit = self.render_node(node, context)

  File "/tmp/django/django/template/base.py", line 867, in render_node
    return node.render(context)

  File "/tmp/django/django/template/base.py", line 907, in render
    output = self.filter_expression.resolve(context)

  File "/tmp/django/django/template/base.py", line 598, in resolve
    obj = self.var.resolve(context)

  File "/tmp/django/django/template/base.py", line 739, in resolve
    value = self._resolve_lookup(context)

  File "/tmp/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

----------------------------------------------------------------------
Template test (Cached='True', TEMPLATE_STRING_IF_INVALID='', TEMPLATE_DEBUG=False): numpy-array-index02 -- FAILED. Got <class 'IndexError'>, exception: index 5 is out of bounds for axis 0 with size 2
Traceback (most recent call last):

  File "/tmp/django/tests/template_tests/tests.py", line 596, in test_templates
    output = self.render(test_template, vals)

  File "/tmp/django/tests/template_tests/tests.py", line 622, in render
    output = test_template.render(context)

  File "/tmp/django/django/template/base.py", line 150, in render
    return self._render(context)

  File "/tmp/django/django/test/utils.py", line 89, in instrumented_test_render
    return self.nodelist.render(context)

  File "/tmp/django/django/template/base.py", line 853, in render
    bit = self.render_node(node, context)

  File "/tmp/django/django/template/base.py", line 867, in render_node
    return node.render(context)

  File "/tmp/django/django/template/base.py", line 907, in render
    output = self.filter_expression.resolve(context)

  File "/tmp/django/django/template/base.py", line 598, in resolve
    obj = self.var.resolve(context)

  File "/tmp/django/django/template/base.py", line 739, in resolve
    value = self._resolve_lookup(context)

  File "/tmp/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

----------------------------------------------------------------------
Template test (Cached='False', TEMPLATE_STRING_IF_INVALID='INVALID', TEMPLATE_DEBUG=False): numpy-array-index02 -- FAILED. Got <class 'IndexError'>, exception: index 5 is out of bounds for axis 0 with size 2
Traceback (most recent call last):

  File "/tmp/django/tests/template_tests/tests.py", line 596, in test_templates
    output = self.render(test_template, vals)

  File "/tmp/django/tests/template_tests/tests.py", line 622, in render
    output = test_template.render(context)

  File "/tmp/django/django/template/base.py", line 150, in render
    return self._render(context)

  File "/tmp/django/django/test/utils.py", line 89, in instrumented_test_render
    return self.nodelist.render(context)

  File "/tmp/django/django/template/base.py", line 853, in render
    bit = self.render_node(node, context)

  File "/tmp/django/django/template/base.py", line 867, in render_node
    return node.render(context)

  File "/tmp/django/django/template/base.py", line 907, in render
    output = self.filter_expression.resolve(context)

  File "/tmp/django/django/template/base.py", line 598, in resolve
    obj = self.var.resolve(context)

  File "/tmp/django/django/template/base.py", line 739, in resolve
    value = self._resolve_lookup(context)

  File "/tmp/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

----------------------------------------------------------------------
Template test (Cached='True', TEMPLATE_STRING_IF_INVALID='INVALID', TEMPLATE_DEBUG=False): numpy-array-index02 -- FAILED. Got <class 'IndexError'>, exception: index 5 is out of bounds for axis 0 with size 2
Traceback (most recent call last):

  File "/tmp/django/tests/template_tests/tests.py", line 596, in test_templates
    output = self.render(test_template, vals)

  File "/tmp/django/tests/template_tests/tests.py", line 622, in render
    output = test_template.render(context)

  File "/tmp/django/django/template/base.py", line 150, in render
    return self._render(context)

  File "/tmp/django/django/test/utils.py", line 89, in instrumented_test_render
    return self.nodelist.render(context)

  File "/tmp/django/django/template/base.py", line 853, in render
    bit = self.render_node(node, context)

  File "/tmp/django/django/template/base.py", line 867, in render_node
    return node.render(context)

  File "/tmp/django/django/template/base.py", line 907, in render
    output = self.filter_expression.resolve(context)

  File "/tmp/django/django/template/base.py", line 598, in resolve
    obj = self.var.resolve(context)

  File "/tmp/django/django/template/base.py", line 739, in resolve
    value = self._resolve_lookup(context)

  File "/tmp/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

----------------------------------------------------------------------
Template test (Cached='False', TEMPLATE_STRING_IF_INVALID='', TEMPLATE_DEBUG=True): numpy-array-index02 -- FAILED. Got <class 'IndexError'>, exception: index 5 is out of bounds for axis 0 with size 2
Traceback (most recent call last):

  File "/tmp/django/tests/template_tests/tests.py", line 596, in test_templates
    output = self.render(test_template, vals)

  File "/tmp/django/tests/template_tests/tests.py", line 622, in render
    output = test_template.render(context)

  File "/tmp/django/django/template/base.py", line 150, in render
    return self._render(context)

  File "/tmp/django/django/test/utils.py", line 89, in instrumented_test_render
    return self.nodelist.render(context)

  File "/tmp/django/django/template/base.py", line 853, in render
    bit = self.render_node(node, context)

  File "/tmp/django/django/template/debug.py", line 80, in render_node
    return node.render(context)

  File "/tmp/django/django/template/debug.py", line 90, in render
    output = self.filter_expression.resolve(context)

  File "/tmp/django/django/template/base.py", line 598, in resolve
    obj = self.var.resolve(context)

  File "/tmp/django/django/template/base.py", line 739, in resolve
    value = self._resolve_lookup(context)

  File "/tmp/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

----------------------------------------------------------------------
Template test (Cached='True', TEMPLATE_STRING_IF_INVALID='', TEMPLATE_DEBUG=True): numpy-array-index02 -- FAILED. Got <class 'IndexError'>, exception: index 5 is out of bounds for axis 0 with size 2
Traceback (most recent call last):

  File "/tmp/django/tests/template_tests/tests.py", line 596, in test_templates
    output = self.render(test_template, vals)

  File "/tmp/django/tests/template_tests/tests.py", line 622, in render
    output = test_template.render(context)

  File "/tmp/django/django/template/base.py", line 150, in render
    return self._render(context)

  File "/tmp/django/django/test/utils.py", line 89, in instrumented_test_render
    return self.nodelist.render(context)

  File "/tmp/django/django/template/base.py", line 853, in render
    bit = self.render_node(node, context)

  File "/tmp/django/django/template/debug.py", line 80, in render_node
    return node.render(context)

  File "/tmp/django/django/template/debug.py", line 90, in render
    output = self.filter_expression.resolve(context)

  File "/tmp/django/django/template/base.py", line 598, in resolve
    obj = self.var.resolve(context)

  File "/tmp/django/django/template/base.py", line 739, in resolve
    value = self._resolve_lookup(context)

  File "/tmp/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


----------------------------------------------------------------------
Ran 1 test in 1.506s

FAILED (failures=1)



More information about the Python-modules-team mailing list