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

Unified Diff: Tools/Scripts/webkitpy/common/system/outputcapture.py

Issue 654063002: Switch webkitpy to use the typ test framework (delete webkitpy.test). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix typo for bot_test_expectations Created 6 years, 2 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/common/system/outputcapture.py
diff --git a/Tools/Scripts/webkitpy/common/system/outputcapture.py b/Tools/Scripts/webkitpy/common/system/outputcapture.py
index dff3d69df9c80524feb5aeb5b6e9843846841e73..b9b0a0839425910660de41f33633875c18f2b05f 100644
--- a/Tools/Scripts/webkitpy/common/system/outputcapture.py
+++ b/Tools/Scripts/webkitpy/common/system/outputcapture.py
@@ -36,12 +36,6 @@ from StringIO import StringIO
class OutputCapture(object):
- # By default we capture the output to a stream. Other modules may override
- # this function in order to do things like pass through the output. See
- # webkitpy.test.main for an example.
- @staticmethod
- def stream_wrapper(stream):
- return StringIO()
def __init__(self):
self.saved_outputs = dict()
@@ -54,7 +48,7 @@ class OutputCapture(object):
def _capture_output_with_name(self, output_name):
stream = getattr(sys, output_name)
- captured_output = self.stream_wrapper(stream)
+ captured_output = StringIO()
self.saved_outputs[output_name] = stream
setattr(sys, output_name, captured_output)
return captured_output

Powered by Google App Engine
This is Rietveld 408576698