(self)
| 92 | |
| 93 | @force_not_colorized |
| 94 | def test_stdin_stdout(self): |
| 95 | args = sys.executable, '-m', self.module |
| 96 | process = subprocess.run(args, input=self.data, capture_output=True, text=True, check=True) |
| 97 | self.assertEqual(process.stdout, self.expect) |
| 98 | self.assertEqual(process.stderr, '') |
| 99 | |
| 100 | def _create_infile(self, data=None): |
| 101 | infile = os_helper.TESTFN |
nothing calls this directly
no test coverage detected