summaryrefslogtreecommitdiff
path: root/tests
diff options
authorThomi Richards <thomi.richards@canonical.com>2012-07-11 12:57:45 +1200
committerThomi Richards <thomi.richards@canonical.com>2012-07-11 12:57:45 +1200
commit130f51688bb2f6e8a29a1a9518d0f3eda2015ddc (patch)
tree01b78ef050c782c8923935dd0dbbad640be15c6a /tests
parenta3883b8ca9d98aa0822634a2d744abeeaec8fed2 (diff)
Fixed a spot where we were using filter(...) and we didn't need to.
(bzr r2487.1.4)
Diffstat (limited to 'tests')
-rw-r--r--tests/autopilot/unity/emulators/quicklist.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/autopilot/unity/emulators/quicklist.py b/tests/autopilot/unity/emulators/quicklist.py
index c4cbe55b4..fc30f8c20 100644
--- a/tests/autopilot/unity/emulators/quicklist.py
+++ b/tests/autopilot/unity/emulators/quicklist.py
@@ -36,8 +36,7 @@ class Quicklist(UnityIntrospectionObject):
if not self.active:
raise RuntimeError("Cannot get quicklist items. Quicklist is inactive!")
- matches = filter(lambda i: i.text == text,
- self.get_children_by_type(QuicklistMenuItemLabel))
+ matches = self.get_children_by_type(QuicklistMenuItemLabel, text=text)
return matches[0] if matches else None