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

Method test_io_unbuffered_works

Lib/test/test_subprocess.py:136–148  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

134 p.wait()
135
136 def test_io_unbuffered_works(self):
137 p = subprocess.Popen(ZERO_RETURN_CMD,
138 stdin=subprocess.PIPE, stdout=subprocess.PIPE,
139 stderr=subprocess.PIPE, bufsize=0)
140 try:
141 self.assertIsInstance(p.stdin, io.RawIOBase)
142 self.assertIsInstance(p.stdout, io.RawIOBase)
143 self.assertIsInstance(p.stderr, io.RawIOBase)
144 finally:
145 p.stdin.close()
146 p.stdout.close()
147 p.stderr.close()
148 p.wait()
149
150 def test_call_seq(self):
151 # call() function with sequence argument

Callers

nothing calls this directly

Calls 3

waitMethod · 0.95
assertIsInstanceMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected