Index: tools/telemetry/telemetry/core/extension_unittest.py |
diff --git a/tools/telemetry/telemetry/core/extension_unittest.py b/tools/telemetry/telemetry/core/extension_unittest.py |
index 56a671bec968b1351ec48aa1b950c0aea0281aff..20f3553003589c1dd0a8d5da1eeb6a6bcc448db4 100644 |
--- a/tools/telemetry/telemetry/core/extension_unittest.py |
+++ b/tools/telemetry/telemetry/core/extension_unittest.py |
@@ -137,10 +137,9 @@ class MultipleExtensionTest(unittest.TestCase): |
return |
# Test contains. |
- loaded_extensions = filter(lambda e: e in self._browser.extensions, |
- self._extensions_to_load) |
+ loaded_extensions = [e for e in self._extensions_to_load |
+ if e in self._browser.extensions] |
self.assertEqual(len(loaded_extensions), len(self._extensions_to_load)) |
- |
for load_extension in self._extensions_to_load: |
extension = self._browser.extensions[load_extension] |
assert extension |