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

Unified Diff: third_party/WebKit/Tools/Scripts/webkitpy/style/error_handlers_unittest.py

Issue 2679393004: Fix all "dangerous-default-value" pylint warnings. (Closed)
Patch Set: Created 3 years, 10 months 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/style/error_handlers_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/style/error_handlers_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/style/error_handlers_unittest.py
index 743c5173259503ba4a01c63c7ce84b62b0c658b9..e9b3b32e51e984cd4379c238c98ca3a1d77702b6 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/style/error_handlers_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/error_handlers_unittest.py
@@ -90,7 +90,8 @@ class DefaultStyleErrorHandlerTest(unittest.TestCase):
"""Test the __eq__() method for the return value of False."""
def make_handler(configuration=self._style_checker_configuration(),
file_path='foo.txt', increment_error_count=lambda: True,
- line_numbers=[100]):
+ line_numbers=None):
+ line_numbers = line_numbers or [100]
return DefaultStyleErrorHandler(configuration=configuration,
file_path=file_path,
increment_error_count=increment_error_count,

Powered by Google App Engine
This is Rietveld 408576698