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

Unified Diff: third_party/closure_linter/closure_linter/common/filetestcase.py

Issue 2328693002: Updated linter with upstream release (2.3.19) (Closed)
Patch Set: Created 4 years, 3 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/closure_linter/closure_linter/common/filetestcase.py
diff --git a/third_party/closure_linter/closure_linter/common/filetestcase.py b/third_party/closure_linter/closure_linter/common/filetestcase.py
index 8f0532c94f92aba39257b24d4d2b9d4af2e364b7..7cd83cd1dcf58c0cb11ae510a939c5841c19c93b 100755
--- a/third_party/closure_linter/closure_linter/common/filetestcase.py
+++ b/third_party/closure_linter/closure_linter/common/filetestcase.py
@@ -25,6 +25,7 @@ __author__ = ('robbyw@google.com (Robert Walker)',
import re
+import gflags as flags
import unittest as googletest
from closure_linter.common import erroraccumulator
@@ -55,6 +56,12 @@ class AnnotatedFileTestCase(googletest.TestCase):
self._lint_callable = lint_callable
self._converter = converter
+ def setUp(self):
+ flags.FLAGS.dot_on_next_line = True
+
+ def tearDown(self):
+ flags.FLAGS.dot_on_next_line = False
+
def shortDescription(self):
"""Provides a description for the test."""
return 'Run linter on %s' % self._filename

Powered by Google App Engine
This is Rietveld 408576698