(self)
| 337 | nose.iptest_stdstreams_fileno = self.get_write_fileno |
| 338 | |
| 339 | def get_write_fileno(self): |
| 340 | if self.destination == 'capture': |
| 341 | self.stream_capturer.ensure_started() |
| 342 | return self.stream_capturer.writefd |
| 343 | elif self.destination == 'discard': |
| 344 | return os.open(os.devnull, os.O_WRONLY) |
| 345 | else: |
| 346 | return sys.__stdout__.fileno() |
| 347 | |
| 348 | def configure(self, options, config): |
| 349 | Plugin.configure(self, options, config) |
nothing calls this directly
no test coverage detected