MCPcopy Index your code
hub / github.com/python/cpython / pipe

Method pipe

Lib/test/test_import/__init__.py:2174–2180  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2172
2173 @unittest.skipUnless(hasattr(os, "pipe"), "requires os.pipe()")
2174 def pipe(self):
2175 r, w = os.pipe()
2176 self.addCleanup(os.close, r)
2177 self.addCleanup(os.close, w)
2178 if hasattr(os, 'set_blocking'):
2179 os.set_blocking(r, False)
2180 return (r, w)
2181
2182 def import_script(self, name, fd, filename=None, check_override=None):
2183 override_text = ''

Callers 3

run_hereMethod · 0.95
from_subinterpMethod · 0.45
import_in_subinterpMethod · 0.45

Calls 1

addCleanupMethod · 0.80

Tested by

no test coverage detected