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

Unified Diff: Tools/Scripts/webkitpy/thirdparty/unittest2/result.py

Issue 20652002: Fix trailing whitespace in scripts and misc. files (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Don't change literal diff. Created 7 years, 5 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: Tools/Scripts/webkitpy/thirdparty/unittest2/result.py
diff --git a/Tools/Scripts/webkitpy/thirdparty/unittest2/result.py b/Tools/Scripts/webkitpy/thirdparty/unittest2/result.py
index 7770e646300ddcc838e7b4c00f1b00b18372e1da..b30ad2b426eced517f182afa7fcd18665429ad58 100644
--- a/Tools/Scripts/webkitpy/thirdparty/unittest2/result.py
+++ b/Tools/Scripts/webkitpy/thirdparty/unittest2/result.py
@@ -36,7 +36,7 @@ class TestResult(unittest.TestResult):
"""
_previousTestClass = None
_moduleSetUpFailed = False
-
+
def __init__(self):
self.failfast = False
self.failures = []
@@ -52,7 +52,7 @@ class TestResult(unittest.TestResult):
self._original_stdout = sys.stdout
self._original_stderr = sys.stderr
self._mirrorOutput = False
-
+
def startTest(self, test):
"Called when the given test is about to be run"
self.testsRun += 1
@@ -84,7 +84,7 @@ class TestResult(unittest.TestResult):
if not error.endswith('\n'):
error += '\n'
self._original_stderr.write(STDERR_LINE % error)
-
+
sys.stdout = self._original_stdout
sys.stderr = self._original_stderr
self._stdout_buffer.seek(0)
@@ -92,7 +92,7 @@ class TestResult(unittest.TestResult):
self._stderr_buffer.seek(0)
self._stderr_buffer.truncate()
self._mirrorOutput = False
-
+
def stopTestRun(self):
"""Called once after all tests are executed.
@@ -153,10 +153,10 @@ class TestResult(unittest.TestResult):
msgLines = traceback.format_exception(exctype, value, tb, length)
else:
msgLines = traceback.format_exception(exctype, value, tb)
-
+
if self.buffer:
output = sys.stdout.getvalue()
- error = sys.stderr.getvalue()
+ error = sys.stderr.getvalue()
if output:
if not output.endswith('\n'):
output += '\n'
« no previous file with comments | « Tools/Scripts/webkitpy/thirdparty/unittest2/main.py ('k') | Tools/Scripts/webkitpy/thirdparty/unittest2/runner.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698