Skip to content

Commit b528499

Browse files
authored
gh-70441: Fix test_tarfile on systems w/o bz2 (gh-2962) (#94258)
1 parent 50cd4b6 commit b528499

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Lib/test/test_tarfile.py

+1
Original file line numberDiff line numberDiff line change
@@ -1613,6 +1613,7 @@ def test_compresslevel_wrong_modes(self):
16131613
with self.assertRaises(TypeError):
16141614
tarfile.open(tmpname, "w:", fobj, compresslevel=compresslevel)
16151615

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

0 commit comments

Comments
 (0)