mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
#6026 - fix tests that failed without zlib
This commit is contained in:
parent
21121e64b4
commit
1036a7f7e1
7 changed files with 51 additions and 6 deletions
|
@ -4,6 +4,13 @@ import unittest
|
|||
import sys
|
||||
import os
|
||||
|
||||
# zlib is not used here, but if it's not available
|
||||
# test_simple_built will fail
|
||||
try:
|
||||
import zlib
|
||||
except ImportError:
|
||||
zlib = None
|
||||
|
||||
from distutils.core import Distribution
|
||||
from distutils.command.bdist_dumb import bdist_dumb
|
||||
from distutils.tests import support
|
||||
|
@ -31,6 +38,7 @@ class BuildDumbTestCase(support.TempdirManager,
|
|||
sys.argv = self.old_sys_argv[:]
|
||||
super(BuildDumbTestCase, self).tearDown()
|
||||
|
||||
@unittest.skipUnless(zlib, "requires zlib")
|
||||
def test_simple_built(self):
|
||||
|
||||
# let's create a simple package
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue