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

Unified Diff: tests/gclient_utils_test.py

Issue 3155024: Fix gclient_utils_test and disable gclient_scm_test. (Closed)
Patch Set: Created 10 years, 4 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
« no previous file with comments | « PRESUBMIT.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/gclient_utils_test.py
diff --git a/tests/gclient_utils_test.py b/tests/gclient_utils_test.py
index b214172ba4c4b2a84f5d45286932c9534b565239..6bcfd130563554b806b5b16f4a59423adf989d5f 100755
--- a/tests/gclient_utils_test.py
+++ b/tests/gclient_utils_test.py
@@ -11,7 +11,13 @@ from super_mox import SuperMoxTestBase
import gclient_utils
-class GclientUtilsUnittest(SuperMoxTestBase):
+class GclientUtilBase(SuperMoxTestBase):
+ def setUp(self):
+ super(GclientUtilBase, self).setUp()
+ gclient_utils.sys.stdout.flush = lambda: None
+
+
+class GclientUtilsUnittest(GclientUtilBase):
"""General gclient_utils.py tests."""
def testMembersChanged(self):
members = [
@@ -29,7 +35,7 @@ class GclientUtilsUnittest(SuperMoxTestBase):
self.compareMembers(gclient_utils, members)
-class CheckCallTestCase(SuperMoxTestBase):
+class CheckCallTestCase(GclientUtilBase):
def testCheckCallSuccess(self):
command = ['boo', 'foo', 'bar']
process = self.mox.CreateMockAnything()
@@ -65,7 +71,7 @@ class CheckCallTestCase(SuperMoxTestBase):
self.assertEqual(e.stderr, 'foo')
-class SubprocessCallAndFilterTestCase(SuperMoxTestBase):
+class SubprocessCallAndFilterTestCase(GclientUtilBase):
def testSubprocessCallAndFilter(self):
command = ['boo', 'foo', 'bar']
in_directory = 'bleh'
@@ -102,7 +108,7 @@ class SubprocessCallAndFilterTestCase(SuperMoxTestBase):
self.assertEquals(capture_list, ['cc', 'dd'])
-class SplitUrlRevisionTestCase(SuperMoxTestBase):
+class SplitUrlRevisionTestCase(GclientUtilBase):
def testSSHUrl(self):
url = "ssh://test@example.com/test.git"
rev = "ac345e52dc"
« no previous file with comments | « PRESUBMIT.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698