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.
--
Ticket URL: <https://code.djangoproject.com/ticket/26923>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Suggested PR is here: https://github.com/django/django/pull/6945
--
Ticket URL: <https://code.djangoproject.com/ticket/26923#comment:1>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/26923#comment:2>
* stage: Unreviewed => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/26923#comment:3>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"8e5cbc884f77c85b0edbc6206810643abaf589c9" 8e5cbc88]:
{{{
#!CommitTicketReference repository=""
revision="8e5cbc884f77c85b0edbc6206810643abaf589c9"
Fixed #26923 -- Fixed template_tests with numpy < 1.9.0.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26923#comment:4>
Comment (by Tim Graham <timograham@…>):
In [changeset:"6cf35c666c69526a27e8a6ce8ca075b85f326356" 6cf35c66]:
{{{
#!CommitTicketReference repository=""
revision="6cf35c666c69526a27e8a6ce8ca075b85f326356"
[1.8.x] Fixed #26923 -- Fixed template_tests with numpy < 1.9.0.
Backport of 8e5cbc884f77c85b0edbc6206810643abaf589c9 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26923#comment:5>
Comment (by Tim Graham <timograham@…>):
In [changeset:"638ec38c8e9c468773726a64df53ad810b5610d4" 638ec38]:
{{{
#!CommitTicketReference repository=""
revision="638ec38c8e9c468773726a64df53ad810b5610d4"
[1.9.x] Fixed #26923 -- Fixed template_tests with numpy < 1.9.0.
Backport of 8e5cbc884f77c85b0edbc6206810643abaf589c9 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26923#comment:6>
Comment (by Tim Graham <timograham@…>):
In [changeset:"2d1aeccacc7402d3af5e8d5b49f8782b0698c81f" 2d1aecca]:
{{{
#!CommitTicketReference repository=""
revision="2d1aeccacc7402d3af5e8d5b49f8782b0698c81f"
[1.10.x] Fixed #26923 -- Fixed template_tests with numpy < 1.9.0.
Backport of 8e5cbc884f77c85b0edbc6206810643abaf589c9 from master
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26923#comment:7>