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

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

Issue 1839193004: Run auto-formatter (autopep8) on webkitpy. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 9 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/checkers/python_unittest.py
diff --git a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python_unittest.py b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python_unittest.py
index 69ba1b1c69aba4cef9d41b69b21a3d30c02e42aa..347174556a1bc59502d3a11d86af960306237222 100644
--- a/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python_unittest.py
+++ b/third_party/WebKit/Tools/Scripts/webkitpy/style/checkers/python_unittest.py
@@ -34,13 +34,14 @@ class PythonCheckerTest(unittest.TestCase):
def test_init(self):
"""Test __init__() method."""
+
def _mock_handle_style_error(self):
pass
checker = PythonChecker("foo.txt", _mock_handle_style_error)
self.assertEqual(checker._file_path, "foo.txt")
self.assertEqual(checker._handle_style_error,
- _mock_handle_style_error)
+ _mock_handle_style_error)
def test_check(self):
"""Test check() method."""
@@ -61,4 +62,4 @@ class PythonCheckerTest(unittest.TestCase):
(4, "pep8/W291", 5, "trailing whitespace"),
(4, "pylint/E1601(print-statement)", 5, "[] print statement used"),
(4, "pylint/E0602(undefined-variable)", 5, "[] Undefined variable 'error'"),
- ])
+ ])

Powered by Google App Engine
This is Rietveld 408576698