(self)
| 560 | self.assertEqual(tar.name, os.path.abspath(fobj.name)) |
| 561 | |
| 562 | def test_no_name_attribute(self): |
| 563 | with open(self.tarname, "rb") as fobj: |
| 564 | data = fobj.read() |
| 565 | fobj = io.BytesIO(data) |
| 566 | self.assertRaises(AttributeError, getattr, fobj, "name") |
| 567 | tar = tarfile.open(fileobj=fobj, mode=self.mode) |
| 568 | self.assertIsNone(tar.name) |
| 569 | |
| 570 | def test_empty_name_attribute(self): |
| 571 | with open(self.tarname, "rb") as fobj: |
nothing calls this directly
no test coverage detected