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 committed Nov 26, 2024
1 parent 095f8aa commit e35e221
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 e35e221

Please sign in to comment.