(self)
| 500 | self.assertEqual(nread, len(uncompressed)) |
| 501 | |
| 502 | def test_textio_readlines(self): |
| 503 | # Issue #10791: TextIOWrapper.readlines() fails when wrapping GzipFile. |
| 504 | lines = (data1 * 50).decode("ascii").splitlines(keepends=True) |
| 505 | self.test_write() |
| 506 | with gzip.GzipFile(self.filename, 'r') as f: |
| 507 | with io.TextIOWrapper(f, encoding="ascii") as t: |
| 508 | self.assertEqual(t.readlines(), lines) |
| 509 | |
| 510 | def test_fileobj_with_name(self): |
| 511 | with open(self.filename, "xb") as raw: |
nothing calls this directly
no test coverage detected