(self)
| 213 | f.flush() |
| 214 | |
| 215 | def test_append(self): |
| 216 | self.test_write() |
| 217 | # Append to the previous file |
| 218 | with gzip.GzipFile(self.filename, 'ab') as f: |
| 219 | f.write(data2 * 15) |
| 220 | |
| 221 | with gzip.GzipFile(self.filename, 'rb') as f: |
| 222 | d = f.read() |
| 223 | self.assertEqual(d, (data1*50) + (data2*15)) |
| 224 | |
| 225 | def test_many_append(self): |
| 226 | # Bug #1074261 was triggered when reading a file that contained |
nothing calls this directly
no test coverage detected