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