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

Lines changed: 1 addition & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy