(self)
| 568 | self.assertIsNone(tar.name) |
| 569 | |
| 570 | def test_empty_name_attribute(self): |
| 571 | with open(self.tarname, "rb") as fobj: |
| 572 | data = fobj.read() |
| 573 | fobj = io.BytesIO(data) |
| 574 | fobj.name = "" |
| 575 | with tarfile.open(fileobj=fobj, mode=self.mode) as tar: |
| 576 | self.assertIsNone(tar.name) |
| 577 | |
| 578 | def test_int_name_attribute(self): |
| 579 | # Issue 21044: tarfile.open() should handle fileobj with an integer |
nothing calls this directly
no test coverage detected