Commit d254e845 authored by maruel@chromium.org's avatar maruel@chromium.org

Fix depot_tools presubmit check for ubuntu 12.04.

R=cmp@chromium.org
BUG=


Review URL: https://chromiumcodereview.appspot.com/10828393

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@152752 0039d316-1c4b-4281-b951-d872f2087c98
parent a9417c7f
......@@ -98,7 +98,8 @@ class StdoutCheck(object):
try:
# If sys.stdout was used, self.checkstdout() must be called.
# pylint: disable=E1101
self.assertEquals('', sys.stdout.getvalue())
if not sys.stdout.closed:
self.assertEquals('', sys.stdout.getvalue())
except AttributeError:
pass
sys.stdout = self._old_stdout
......
......@@ -1592,7 +1592,6 @@ class CannedChecksUnittest(PresubmitTestsBase):
self.assertEquals(results2[0].__class__, error_type)
def ReadFileTest(self, check, content1, content2, error_type):
self.mox.StubOutWithMock(presubmit.InputApi, 'ReadFile')
change1 = presubmit.Change(
'foo1', 'foo1\n', self.fake_root_dir, None, 0, 0, None)
input_api1 = self.MockInputApi(change1, False)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment