(self)
| 120 | class ProcessTestCase(BaseTestCase): |
| 121 | |
| 122 | def test_io_buffered_by_default(self): |
| 123 | p = subprocess.Popen(ZERO_RETURN_CMD, |
| 124 | stdin=subprocess.PIPE, stdout=subprocess.PIPE, |
| 125 | stderr=subprocess.PIPE) |
| 126 | try: |
| 127 | self.assertIsInstance(p.stdin, io.BufferedIOBase) |
| 128 | self.assertIsInstance(p.stdout, io.BufferedIOBase) |
| 129 | self.assertIsInstance(p.stderr, io.BufferedIOBase) |
| 130 | finally: |
| 131 | p.stdin.close() |
| 132 | p.stdout.close() |
| 133 | p.stderr.close() |
| 134 | p.wait() |
| 135 | |
| 136 | def test_io_unbuffered_works(self): |
| 137 | p = subprocess.Popen(ZERO_RETURN_CMD, |
nothing calls this directly
no test coverage detected