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