call site 0 for log.Producer.get_consumer
log/testing/test_log.py - line 66
65
66
67
   def test_log_default_stdout(self):
->     res, out, err = callcapture(py.log.default, "hello")
       assert out.strip() == "[default] hello" 
io/stdcapture.py - line 18
9
10
11
12
13
14
15
16
17
18
19
20
21
   def call(cls, func, *args, **kwargs): 
       """ return a (res, out, err) tuple where
               out and err represent the output/error output
               during function execution. 
               call the given function with args/kwargs
               and capture output/error during its execution. 
           """ 
       so = cls()
       try: 
->         res = func(*args, **kwargs)
       finally: 
           out, err = so.reset()
       return res, out, err 
log/producer.py - line 53
51
52
53
54
55
   def __call__(self, *args):
       """ write a message to the appropriate consumer(s) """
->     func = self.get_consumer(self.keywords)
       if func is not None: 
           func(self.Message(self.keywords, args))