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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py

Issue 2569153003: In "pylint: disable=" comments in webkitpy, use symbolic names. (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py
index 0ac9b69a41bbe6d790439ee4587c9d20e6caab41..2608f57c7919b2a2f73fac609abc607b32415e92 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/port/browser_test.py
@@ -56,7 +56,7 @@ class BrowserTestPortOverrides(object):
"""Overridden function from the base port class. Redirects everything
to src/chrome/test/data/printing/layout_tests.
"""
- return self.path_from_chromium_base('chrome', 'test', 'data', 'printing', 'layout_tests') # pylint: disable=E1101
+ return self.path_from_chromium_base('chrome', 'test', 'data', 'printing', 'layout_tests') # pylint: disable=no-member
def check_sys_deps(self, needs_http):
"""This function is meant to be a no-op since we don't want to actually
@@ -69,7 +69,7 @@ class BrowserTestPortOverrides(object):
def default_timeout_ms(self):
timeout_ms = 10 * 1000
- if self.get_option('configuration') == 'Debug': # pylint: disable=E1101
+ if self.get_option('configuration') == 'Debug': # pylint: disable=no-member
# Debug is usually 2x-3x slower than Release.
return 3 * timeout_ms
return timeout_ms
@@ -89,7 +89,7 @@ class BrowserTestMacPort(BrowserTestPortOverrides, mac.MacPort):
def default_timeout_ms(self):
timeout_ms = 20 * 1000
- if self.get_option('configuration') == 'Debug': # pylint: disable=E1101
+ if self.get_option('configuration') == 'Debug': # pylint: disable=no-member
# Debug is usually 2x-3x slower than Release.
return 3 * timeout_ms
return timeout_ms
@@ -99,7 +99,7 @@ class BrowserTestWinPort(BrowserTestPortOverrides, win.WinPort):
def default_timeout_ms(self):
timeout_ms = 20 * 1000
- if self.get_option('configuration') == 'Debug': # pylint: disable=E1101
+ if self.get_option('configuration') == 'Debug': # pylint: disable=no-member
# Debug is usually 2x-3x slower than Release.
return 3 * timeout_ms
return timeout_ms

Powered by Google App Engine
This is Rietveld 408576698