Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Unified Diff: tools/telemetry/telemetry/core/extension_unittest.py

Issue 739623005: [Telemetry] Resolve errors due to new pylint checker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ready to land Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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
« no previous file with comments | « tools/telemetry/telemetry/core/camel_case_unittest.py ('k') | tools/telemetry/telemetry/core/forwarders/android_forwarder.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698