Browse Source

Due to the way handle_boundIO monkey-patches the logger, it's necessary to similarly monkey patch the logger here.

--HG--
extra : source : 0d23297286a2685c008e87aacfc690d857a0b68d
Jason R. Coombs 12 years ago
parent
commit
cba052e584
1 changed files with 1 additions and 1 deletions
  1. 1 1
      supervisor/tests/test_dispatchers.py

+ 1 - 1
supervisor/tests/test_dispatchers.py

@@ -90,7 +90,7 @@ class POutputDispatcherTests(unittest.TestCase):
         process.pid = 4000
         dispatcher = self._makeOne(process)
         dispatcher.capturemode = True
-        dispatcher.capturelog.data = ['hallooo']
+        dispatcher.capturelog.getvalue = lambda: 'hallooo'
         L = []
         def doit(event):
             L.append(event)