Chromium Code Reviews| Index: depot_tools_testing_lib/super_mox.py |
| diff --git a/tests/super_mox.py b/depot_tools_testing_lib/super_mox.py |
| similarity index 98% |
| rename from tests/super_mox.py |
| rename to depot_tools_testing_lib/super_mox.py |
| index 62113e210b57c9b5641aecb45624ebe155906a84..433c675bf2fcaa25ea1480a068d8fb3ab180823d 100644 |
| --- a/tests/super_mox.py |
| +++ b/depot_tools_testing_lib/super_mox.py |
| @@ -90,8 +90,9 @@ class StdoutCheck(object): |
| def setUp(self): |
| # Override the mock with a StringIO, it's much less painful to test. |
| self._old_stdout = sys.stdout |
| - sys.stdout = StringIO.StringIO() |
| - sys.stdout.flush = lambda: None |
| + stdout = StringIO.StringIO() |
| + stdout.flush = lambda: None |
|
M-A Ruel
2011/11/09 19:13:03
Otherwise pylint is confused.
|
| + sys.stdout = stdout |
| def tearDown(self): |
| try: |