(self)
| 1100 | @requires_subprocess() |
| 1101 | @create_and_remove_directory(TEMPDIR) |
| 1102 | def test_compress_stdin_outfile(self): |
| 1103 | args = sys.executable, '-m', 'gzip' |
| 1104 | with Popen(args, stdin=PIPE, stdout=PIPE, stderr=PIPE) as proc: |
| 1105 | out, err = proc.communicate(self.data) |
| 1106 | |
| 1107 | self.assertEqual(err, b'') |
| 1108 | self.assertEqual(out[:2], b"\x1f\x8b") |
| 1109 | |
| 1110 | @create_and_remove_directory(TEMPDIR) |
| 1111 | def test_compress_infile_outfile_default(self): |
nothing calls this directly
no test coverage detected