(self)
| 129 | self.assertEqual(d, data1*50) |
| 130 | |
| 131 | def test_read1(self): |
| 132 | self.test_write() |
| 133 | blocks = [] |
| 134 | nread = 0 |
| 135 | with gzip.GzipFile(self.filename, 'r') as f: |
| 136 | while True: |
| 137 | d = f.read1() |
| 138 | if not d: |
| 139 | break |
| 140 | blocks.append(d) |
| 141 | nread += len(d) |
| 142 | # Check that position was updated correctly (see issue10791). |
| 143 | self.assertEqual(f.tell(), nread) |
| 144 | self.assertEqual(b''.join(blocks), data1 * 50) |
| 145 | |
| 146 | def test_readinto(self): |
| 147 | # 10MB of uncompressible data to ensure multiple reads |
nothing calls this directly
no test coverage detected