Skip to content

Commit 33439d8

Browse files
committed
tests: Disable bz2/gzip/lmza under CPython
Since we raise an Exception that these are not supported
1 parent d063fbf commit 33439d8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test_zipfile/support.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,23 @@ def requires_gzip(reason='requires gzip'):
3838
import gzip
3939
except ImportError:
4040
gzip = None
41+
gzip = None # explicitly not supported at the moment
4142
return unittest.skipUnless(gzip, reason)
4243

4344
def requires_bz2(reason='requires bz2'):
4445
try:
4546
import bz2
4647
except ImportError:
4748
bz2 = None
49+
bz2 = None # explicitly not supported at the moment
4850
return unittest.skipUnless(bz2, reason)
4951

5052
def requires_lzma(reason='requires lzma'):
5153
try:
5254
import lzma
5355
except ImportError:
5456
lzma = None
57+
lzma = None # explicitly not supported at the moment
5558
return unittest.skipUnless(lzma, reason)
5659

5760
def findfile(filename, subdir=None):

0 commit comments

Comments
 (0)