mirror of
https://github.com/python/cpython
synced 2024-10-14 20:02:02 +00:00
gh-70441: Fix test_tarfile on systems w/o bz2 (gh-2962) (#94258)
This commit is contained in:
parent
50cd4b6959
commit
b528499052
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue