Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#26923 closed Bug (fixed)

Test suite broken with numpy 1.8.2 in template_tests.syntax_tests.test_numpy

Reported by: Raphaël Hertzog Owned by: nobody
Component: Template system Version: 1.8
Severity: Normal Keywords:
Cc: bmispelon@… Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

The change made in 3e562cf7a2fab31b4f129661ba9411710d24c5e7 broke Django's test suite (and thus package build) on Debian 8 which contains Numpy 1.8.2.

Django can't afford to work only with the very latest version of each library. Such change should be gradual and made in a backwards-compatible way.

======================================================================
ERROR: template_tests.syntax_tests.test_numpy (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor
    yield
  File "/usr/lib/python3.4/unittest/case.py", line 577, in run
    testMethod()
  File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
    raise exception
ImportError: Failed to import test module: template_tests.syntax_tests.test_numpy
Traceback (most recent call last):
  File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests
    module = self._get_module_from_name(name)
  File "/usr/lib/python3.4/unittest/loader.py", line 290, in _get_module_from_name
    __import__(name)
  File "/<<PKGBUILDDIR>>/tests/template_tests/syntax_tests/test_numpy.py", line 10, in <module>
    VisibleDeprecationWarning = numpy.VisibleDeprecationWarning
AttributeError: 'module' object has no attribute 'VisibleDeprecationWarning'

A patch will follow. It should be backported to all releases where the broken commit has been backported.

Change History (7)

comment:1 by Raphaël Hertzog, 8 years ago

comment:2 by Raphaël Hertzog, 8 years ago

Has patch: set

comment:3 by Claude Paroz, 8 years ago

Triage Stage: UnreviewedReady for checkin

comment:4 by Tim Graham <timograham@…>, 8 years ago

Resolution: fixed
Status: newclosed

In 8e5cbc88:

Fixed #26923 -- Fixed template_tests with numpy < 1.9.0.

comment:5 by Tim Graham <timograham@…>, 8 years ago

In 6cf35c66:

[1.8.x] Fixed #26923 -- Fixed template_tests with numpy < 1.9.0.

Backport of 8e5cbc884f77c85b0edbc6206810643abaf589c9 from master

comment:6 by Tim Graham <timograham@…>, 8 years ago

In 638ec38:

[1.9.x] Fixed #26923 -- Fixed template_tests with numpy < 1.9.0.

Backport of 8e5cbc884f77c85b0edbc6206810643abaf589c9 from master

comment:7 by Tim Graham <timograham@…>, 8 years ago

In 2d1aecca:

[1.10.x] Fixed #26923 -- Fixed template_tests with numpy < 1.9.0.

Backport of 8e5cbc884f77c85b0edbc6206810643abaf589c9 from master

Note: See TracTickets for help on using tickets.
Back to Top