瀏覽代碼

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)