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

Unified Diff: testing_support/super_mox.py

Issue 10828393: Fix depot_tools presubmit check for ubuntu 12.04. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Created 8 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 | « no previous file | tests/presubmit_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing_support/super_mox.py
diff --git a/testing_support/super_mox.py b/testing_support/super_mox.py
index 433c675bf2fcaa25ea1480a068d8fb3ab180823d..18d8219c11e9fd9c492d5145fce621f7873692df 100644
--- a/testing_support/super_mox.py
+++ b/testing_support/super_mox.py
@@ -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
« no previous file with comments | « no previous file | tests/presubmit_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698