Skip to content

Commit 28eb332

Browse files
ZheaoliEclips4
andauthored
Update Lib/test/test_tarfile.py
Co-authored-by: Kirill Podoprigora <kirill.bast9@mail.ru>
1 parent db8e216 commit 28eb332

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_tarfile.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,8 @@ def test_read_through(self):
859859
"TarFile.extractfile() failed")
860860
if not buf:
861861
break
862+
863+
@unittest.skipIf(zlib is None, "requires zlib")
862864
def test_read_with_extra_header(self):
863865
with tarfile.open(tgzname_with_comment_extra_data_in_header,
864866
mode="r|*") as _:

0 commit comments

Comments
 (0)