(self)
| 229 | self.assertIn(b'PEAR', output) |
| 230 | |
| 231 | def test_check_output_input_arg(self): |
| 232 | # check_output() can be called with input set to a string |
| 233 | output = subprocess.check_output( |
| 234 | [sys.executable, "-c", |
| 235 | "import sys; sys.stdout.write(sys.stdin.read().upper())"], |
| 236 | input=b'pear') |
| 237 | self.assertIn(b'PEAR', output) |
| 238 | |
| 239 | def test_check_output_input_none(self): |
| 240 | """input=None has a legacy meaning of input='' on check_output.""" |
nothing calls this directly
no test coverage detected