[Django] #23890: Deprecation warning with numpy 1.8+

34 views
Skip to first unread message

Django

unread,
Nov 21, 2014, 1:55:48 PM11/21/14
to django-...@googlegroups.com
#23890: Deprecation warning with numpy 1.8+
------------------------------------------------+------------------------
Reporter: timgraham | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Template system | Version: master
Severity: Normal | Keywords:
Triage Stage: Accepted | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
------------------------------------------------+------------------------
{{{
$ python -Wall runtests.py template_tests

django/template/base.py:770: DeprecationWarning: using a non-integer
number instead of an integer will result in an error in the future
current = current[bit]
}}}

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

Django

unread,
Nov 25, 2014, 8:47:08 AM11/25/14
to django-...@googlegroups.com
#23890: Deprecation warning with numpy 1.8+
--------------------------------------+------------------------------------

Reporter: timgraham | Owner: nobody
Type: Cleanup/optimization | Status: new
Component: Template system | Version: master
Severity: Normal | Resolution:

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by timgraham):

It looks like if the current
[https://github.com/django/django/blob/c1552af1fe5832011e3b1c3e5b40c20ff3dbe6f9/django/template/base.py#L763-L767
string based lookup] fails with any of the caught exceptions `(TypeError,
AttributeError, KeyError, ValueError, IndexError)`, then we'll fall back
to trying
[https://github.com/django/django/blob/c1552af1fe5832011e3b1c3e5b40c20ff3dbe6f9/django/template/base.py#L778-L779
integer based lookup] which should work. I'll just silence the deprecation
warnings in our tests for now.

--
Ticket URL: <https://code.djangoproject.com/ticket/23890#comment:1>

Django

unread,
Nov 25, 2014, 9:11:36 AM11/25/14
to django-...@googlegroups.com
#23890: Deprecation warning with numpy 1.8+
--------------------------------------+------------------------------------
Reporter: timgraham | Owner: nobody
Type: Cleanup/optimization | Status: closed

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

Keywords: | Triage Stage: Accepted
Has patch: 0 | 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:"d43dd03ca3afecc27f43fbc932f239470a2f07db"]:
{{{
#!CommitTicketReference repository=""
revision="d43dd03ca3afecc27f43fbc932f239470a2f07db"
Fixed #23890 -- Silenced numpy DeprecationWarnings in template tests.
}}}

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

Django

unread,
Dec 6, 2014, 11:28:30 AM12/6/14
to django-...@googlegroups.com
#23890: Deprecation warning with numpy 1.8+
--------------------------------------+------------------------------------
Reporter: timgraham | Owner: nobody
Type: Cleanup/optimization | Status: closed

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

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"3bb52c50193bdfaa56134d055f067d1dfe302158"]:
{{{
#!CommitTicketReference repository=""
revision="3bb52c50193bdfaa56134d055f067d1dfe302158"
Refs #23890 -- Restored silencing of numpy DeprecationWarnings in template
tests.
}}}

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

Django

unread,
Apr 18, 2018, 10:43:03 PM4/18/18
to django-...@googlegroups.com
#23890: Deprecation warning with numpy 1.8+
--------------------------------------+------------------------------------
Reporter: Tim Graham | Owner: nobody
Type: Cleanup/optimization | Status: closed

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

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
--------------------------------------+------------------------------------

Comment (by Tim Graham <timograham@…>):

In [changeset:"a917a5601f145042f31d0e2011bc41c2a3aaea7c" a917a560]:
{{{
#!CommitTicketReference repository=""
revision="a917a5601f145042f31d0e2011bc41c2a3aaea7c"
Refs #23890 -- Removed numpy deprecation warning silencing.

Obsolete since numpy 1.12.0.
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/23890#comment:4>

Reply all
Reply to author
Forward
0 new messages