Remove no longer needed work-around for bz2 file object support.

This commit is contained in:
Lars Gustäbel 2011-12-06 13:44:10 +01:00
parent 45fb082180
commit bb44b73e17
2 changed files with 5 additions and 64 deletions

View file

@ -222,6 +222,9 @@ class CommonReadTest(ReadTest):
class MiscReadTest(CommonReadTest):
def test_no_name_argument(self):
if self.mode.endswith("bz2"):
# BZ2File has no name attribute.
return
with open(self.tarname, "rb") as fobj:
tar = tarfile.open(fileobj=fobj, mode=self.mode)
self.assertEqual(tar.name, os.path.abspath(fobj.name))