Index: testing_support/super_mox.py |
diff --git a/tests/super_mox.py b/testing_support/super_mox.py |
similarity index 98% |
rename from tests/super_mox.py |
rename to testing_support/super_mox.py |
index 62113e210b57c9b5641aecb45624ebe155906a84..433c675bf2fcaa25ea1480a068d8fb3ab180823d 100644 |
--- a/tests/super_mox.py |
+++ b/testing_support/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 |
+ sys.stdout = stdout |
def tearDown(self): |
try: |