Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
gh-70441: Fix test_tarfile on systems w/o bz2 (gh-2962)
  • Loading branch information
tiran committed Jun 25, 2022
commit 3b6ead247500529533b2b21e943802196961b65c
1 change: 1 addition & 0 deletions Lib/test/test_tarfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -1613,6 +1613,7 @@ def test_compresslevel_wrong_modes(self):
with self.assertRaises(TypeError):
tarfile.open(tmpname, "w:", fobj, compresslevel=compresslevel)

@support.requires_bz2()
def test_wrong_compresslevels(self):
# BZ2 checks that the compresslevel is in [1,9]. gz does not
fobj = io.BytesIO()
Expand Down