Opened 16 months ago

Closed 16 months ago

Last modified 16 months 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 Changed 16 months ago by Raphaël Hertzog

comment:2 Changed 16 months ago by Raphaël Hertzog

Has patch: set

comment:3 Changed 16 months ago by Claude Paroz

Triage Stage: UnreviewedReady for checkin

comment:4 Changed 16 months ago by Tim Graham <timograham@…>

Resolution: fixed
Status: newclosed

In 8e5cbc88:

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

comment:5 Changed 16 months ago by Tim Graham <timograham@…>

In 6cf35c66:

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

Backport of 8e5cbc884f77c85b0edbc6206810643abaf589c9 from master

comment:6 Changed 16 months ago by Tim Graham <timograham@…>

In 638ec38:

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

Backport of 8e5cbc884f77c85b0edbc6206810643abaf589c9 from master

comment:7 Changed 16 months ago by Tim Graham <timograham@…>

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