#23489: Test failures with numpy 1.9
---------------------------------+------------------------------------
Reporter: timgraham | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 1.7
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by timgraham):
* has_patch: 0 => 1
Comment:
Here is the change in behavior:
NumPy < 1.9
{{{
>>> numpy.array(["first item", "second item"])['2']
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: field named 2 not found
}}}
NumPy 1.9+
{{{
>>> numpy.array(["first item", "second item"])['2']
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
IndexError: index 2 is out of bounds for axis 0 with size 2
}}}
Attaching a patch to fix it. I guess we shouldn't backport, but require
specific version of test dependencies in Jenkins as suggested in #21793.
The original issue where these tests were added: [7d5e35cd].
--
Ticket URL: <https://code.djangoproject.com/ticket/23489#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/067.d5800435bc912172791fcbd1e0e684f9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.