(self)
| 304 | f.seek(newpos) # positive seek |
| 305 | |
| 306 | def test_seek_whence(self): |
| 307 | self.test_write() |
| 308 | # Try seek(whence=1), read test |
| 309 | |
| 310 | with gzip.GzipFile(self.filename) as f: |
| 311 | f.read(10) |
| 312 | f.seek(10, whence=1) |
| 313 | y = f.read(10) |
| 314 | self.assertEqual(y, data1[20:30]) |
| 315 | |
| 316 | def test_seek_write(self): |
| 317 | # Try seek, write test |
nothing calls this directly
no test coverage detected