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

Method test_compress_stdin_outfile

Lib/test/test_gzip.py:1102–1108  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 3

PopenClass · 0.90
communicateMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected