Skip to content

Commit

Permalink
gh-70441: Fix test_tarfile on systems w/o bz2 (gh-2962) (#94258)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran authored Jun 25, 2022
1 parent 50cd4b6 commit b528499
Showing 1 changed file with 1 addition and 0 deletions.
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

0 comments on commit b528499

Please sign in to comment.