소스 검색

Capture stderr messages when running tests

Mike Naberezny 12 년 전
부모
커밋
5775749256
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      supervisor/tests/test_options.py

+ 4 - 0
supervisor/tests/test_options.py

@@ -186,6 +186,8 @@ class ClientOptionsTests(unittest.TestCase):
         self.assertFalse(os.path.exists(fname))
 
         instance = self._makeOne()
+        instance.stderr = StringIO()
+
         class DummyException(Exception):
             def __init__(self, exitcode):
                 self.exitcode = exitcode
@@ -591,6 +593,8 @@ class ServerOptionsTests(unittest.TestCase):
         self.assertFalse(os.path.exists(fname))
 
         instance = self._makeOne()
+        instance.stderr = StringIO()
+
         class DummyException(Exception):
             def __init__(self, exitcode):
                 self.exitcode = exitcode