diff options
author | Christian Heimes <christian@python.org> | 2022-06-25 10:53:37 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-25 10:53:37 (GMT) |
commit | b52849905218582d067a875712af8c2bcc8789c4 (patch) | |
tree | e700016001979aef9010b42a917b3e3744844326 | |
parent | 50cd4b6959568999f5e426e58050ea912a490ac6 (diff) | |
download | cpython-b52849905218582d067a875712af8c2bcc8789c4.zip cpython-b52849905218582d067a875712af8c2bcc8789c4.tar.gz cpython-b52849905218582d067a875712af8c2bcc8789c4.tar.bz2 |
gh-70441: Fix test_tarfile on systems w/o bz2 (gh-2962) (#94258)
-rw-r--r-- | Lib/test/test_tarfile.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_tarfile.py b/Lib/test/test_tarfile.py index 04f9bee..0868d5d 100644 --- a/Lib/test/test_tarfile.py +++ b/Lib/test/test_tarfile.py @@ -1613,6 +1613,7 @@ class CompressLevelRaises(unittest.TestCase): 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() |