[Django] #26923: Test suite broken with numpy 1.8.2 in template_tests.syntax_tests.test_numpy

3 views
Skip to first unread message

Django

unread,
Jul 21, 2016, 3:52:35 AM7/21/16
to django-...@googlegroups.com
#26923: Test suite broken with numpy 1.8.2 in
template_tests.syntax_tests.test_numpy
---------------------------------+--------------------
Reporter: rhertzog | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------
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.

--
Ticket URL: <https://code.djangoproject.com/ticket/26923>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Jul 21, 2016, 4:00:44 AM7/21/16
to django-...@googlegroups.com
#26923: Test suite broken with numpy 1.8.2 in
template_tests.syntax_tests.test_numpy
---------------------------------+--------------------------------------

Reporter: rhertzog | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by rhertzog):

* 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>

Django

unread,
Jul 21, 2016, 4:00:59 AM7/21/16
to django-...@googlegroups.com
#26923: Test suite broken with numpy 1.8.2 in
template_tests.syntax_tests.test_numpy
---------------------------------+--------------------------------------

Reporter: rhertzog | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
---------------------------------+--------------------------------------
Changes (by rhertzog):

* has_patch: 0 => 1


--
Ticket URL: <https://code.djangoproject.com/ticket/26923#comment:2>

Django

unread,
Jul 21, 2016, 6:04:06 AM7/21/16
to django-...@googlegroups.com
#26923: Test suite broken with numpy 1.8.2 in
template_tests.syntax_tests.test_numpy
-------------------------------------+-------------------------------------

Reporter: rhertzog | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.8
Severity: Normal | Resolution:
Keywords: | Triage Stage: Ready for
| checkin

Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by claudep):

* stage: Unreviewed => Ready for checkin


--
Ticket URL: <https://code.djangoproject.com/ticket/26923#comment:3>

Django

unread,
Jul 21, 2016, 1:00:05 PM7/21/16
to django-...@googlegroups.com
#26923: Test suite broken with numpy 1.8.2 in
template_tests.syntax_tests.test_numpy
-------------------------------------+-------------------------------------
Reporter: rhertzog | Owner: nobody
Type: Bug | Status: closed

Component: Template system | Version: 1.8
Severity: Normal | Resolution: fixed

Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

* 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>

Django

unread,
Jul 21, 2016, 1:02:18 PM7/21/16
to django-...@googlegroups.com
#26923: Test suite broken with numpy 1.8.2 in
template_tests.syntax_tests.test_numpy
-------------------------------------+-------------------------------------
Reporter: rhertzog | Owner: nobody
Type: Bug | Status: closed

Component: Template system | Version: 1.8
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Django

unread,
Jul 21, 2016, 1:02:18 PM7/21/16
to django-...@googlegroups.com
#26923: Test suite broken with numpy 1.8.2 in
template_tests.syntax_tests.test_numpy
-------------------------------------+-------------------------------------
Reporter: rhertzog | Owner: nobody
Type: Bug | Status: closed

Component: Template system | Version: 1.8
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Django

unread,
Jul 21, 2016, 1:02:19 PM7/21/16
to django-...@googlegroups.com
#26923: Test suite broken with numpy 1.8.2 in
template_tests.syntax_tests.test_numpy
-------------------------------------+-------------------------------------
Reporter: rhertzog | Owner: nobody
Type: Bug | Status: closed

Component: Template system | Version: 1.8
Severity: Normal | Resolution: fixed
Keywords: | Triage Stage: Ready for
| checkin
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------

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>

Reply all
Reply to author
Forward
0 new messages