(self)
| 329 | class SubprocessStreamCapturePlugin(Plugin): |
| 330 | name='subprocstreams' |
| 331 | def __init__(self): |
| 332 | Plugin.__init__(self) |
| 333 | self.stream_capturer = StreamCapturer() |
| 334 | self.destination = os.environ.get('IPTEST_SUBPROC_STREAMS', 'capture') |
| 335 | # This is ugly, but distant parts of the test machinery need to be able |
| 336 | # to redirect streams, so we make the object globally accessible. |
| 337 | nose.iptest_stdstreams_fileno = self.get_write_fileno |
| 338 | |
| 339 | def get_write_fileno(self): |
| 340 | if self.destination == 'capture': |
nothing calls this directly
no test coverage detected