Skip to content

Commit

Permalink
Update Lib/test/test_tarfile.py
Browse files Browse the repository at this point in the history
Co-authored-by: Kirill Podoprigora <[email protected]>
  • Loading branch information
Zheaoli and Eclips4 authored Nov 2, 2024
1 parent db8e216 commit 28eb332
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_tarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,8 @@ def test_read_through(self):
"TarFile.extractfile() failed")
if not buf:
break

@unittest.skipIf(zlib is None, "requires zlib")
def test_read_with_extra_header(self):
with tarfile.open(tgzname_with_comment_extra_data_in_header,
mode="r|*") as _:
Expand Down

0 comments on commit 28eb332

Please sign in to comment.