Skip to content

Commit

Permalink
pythongh-70441: Fix test_tarfile on systems w/o bz2 (pythongh-2962)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiran committed Jun 25, 2022
1 parent 50cd4b6 commit 3b6ead2
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 3b6ead2

Please sign in to comment.