Index: test_gzip.py =================================================================== --- test_gzip.py (revision 65475) +++ test_gzip.py (working copy) @@ -160,6 +160,15 @@ self.assertEqual(f.name, self.filename) f.close() + def test_decompress(self): + + for data in (data1, data2): + # Testing compress/decompress functions + datac = gzip.compress(data) + self.assertEqual(type(datac), bytes) + # Decompress and test + self.assertEqual(gzip.decompress(datac), data) + def test_main(verbose=None): support.run_unittest(TestGzip)