소스 검색

fix tests on 2.7+

Chris McDonough 11 년 전
부모
커밋
713c740ca5
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      supervisor/tests/test_dispatchers.py

+ 1 - 0
supervisor/tests/test_dispatchers.py

@@ -503,6 +503,7 @@ class POutputDispatcherTests(unittest.TestCase):
         config.stdout_logfile = 'syslog'
         process = DummyProcess(config)
         with warnings.catch_warnings(record=True) as w:
+            warnings.simplefilter('always')
             self._makeOne(process)
             self.assertEqual(len(w), 1)