#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 , 9 years ago
comment:2 by , 9 years ago
| Has patch: | set |
|---|
comment:3 by , 9 years ago
| Triage Stage: | Unreviewed → Ready for checkin |
|---|
Note:
See TracTickets
for help on using tickets.
Suggested PR is here: https://github.com/django/django/pull/6945