(self)
| 212 | "read() after readline() failed") |
| 213 | |
| 214 | def test_fileobj_text(self): |
| 215 | with self.tar.extractfile("ustar/regtype") as fobj: |
| 216 | fobj = io.TextIOWrapper(fobj) |
| 217 | data = fobj.read().encode("iso8859-1") |
| 218 | self.assertEqual(sha256sum(data), sha256_regtype) |
| 219 | try: |
| 220 | fobj.seek(100) |
| 221 | except AttributeError: |
| 222 | # Issue #13815: seek() complained about a missing |
| 223 | # flush() method. |
| 224 | self.fail("seeking failed in text mode") |
| 225 | |
| 226 | # Test if symbolic and hard links are resolved by extractfile(). The |
| 227 | # test link members each point to a regular member whose data is |
nothing calls this directly
no test coverage detected