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)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file)

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.

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.

Attachment

General

Created:
Updated:
Size: