MCPcopy Create free account
hub / github.com/ipython/ipython / get_write_fileno

Method get_write_fileno

IPython/testing/iptest.py:339–346  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

ensure_startedMethod · 0.80

Tested by

no test coverage detected