#23890 closed Cleanup/optimization (fixed)
Deprecation warning with numpy 1.8+
| Reported by: | Tim Graham | Owned by: | nobody |
|---|---|---|---|
| Component: | Template system | Version: | dev |
| Severity: | Normal | Keywords: | |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | no | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
$ 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]
Change History (4)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
It looks like if the current string based lookup fails with any of the caught exceptions
(TypeError, AttributeError, KeyError, ValueError, IndexError), then we'll fall back to trying integer based lookup which should work. I'll just silence the deprecation warnings in our tests for now.