mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Remove no longer needed work-around for bz2 file object support.
This commit is contained in:
parent
45fb082180
commit
bb44b73e17
2 changed files with 5 additions and 64 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue