Closed
Bug 1526682
Opened 6 years ago
Closed 6 years ago
Python 3 "TypeError: 'filter' object is not subscriptable"
Categories
(Tree Management :: Perfherder, defect, P1)
Tree Management
Perfherder
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: emorley)
References
Details
Attachments
(1 file)
(deleted),
text/x-github-pull-request
|
Details |
Under Python 3 there are test errors of form:
> perf_datum = filter(lambda tpd: tpd.id == perf_datum_id, test_perf_data)[0]
E TypeError: 'filter' object is not subscriptable
tests/webapp/api/test_performance_alerts_api.py:444: TypeError
(eg https://travis-ci.org/mozilla/treeherder/jobs/490942817#L3272)
The filter() usages were fixed in https://github.com/mozilla/treeherder/pull/3418/commits/03489adf387733bcd2838173649f956d4ca42e44 however this usage was added since, in bug 1468172.
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•