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