summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-10-23 19:56:14 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-10-23 19:56:14 (GMT)
commit0211bb78fd6c59885c5bea0ddd3d073266b02be6 (patch)
tree5ce777daab9594e44a6a66579d59356a4ba68d57 /Lib/distutils
parentb4293efd930b37dbafcedc8ff937903dc7a26c44 (diff)
downloadcpython-0211bb78fd6c59885c5bea0ddd3d073266b02be6.zip
cpython-0211bb78fd6c59885c5bea0ddd3d073266b02be6.tar.gz
cpython-0211bb78fd6c59885c5bea0ddd3d073266b02be6.tar.bz2
Some distutils tests require zlib for creating tar.gz source distribution.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_bdist_rpm.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/distutils/tests/test_bdist_rpm.py b/Lib/distutils/tests/test_bdist_rpm.py
index 25c14ab..e9795ee 100644
--- a/Lib/distutils/tests/test_bdist_rpm.py
+++ b/Lib/distutils/tests/test_bdist_rpm.py
@@ -3,9 +3,7 @@
import unittest
import sys
import os
-import tempfile
-import shutil
-from test.support import run_unittest
+from test.support import run_unittest, requires_zlib
from distutils.core import Distribution
from distutils.command.bdist_rpm import bdist_rpm
@@ -48,6 +46,7 @@ class BuildRpmTestCase(support.TempdirManager,
# spurious sdtout/stderr output under Mac OS X
@unittest.skipUnless(sys.platform.startswith('linux'),
'spurious sdtout/stderr output under Mac OS X')
+ @requires_zlib
@unittest.skipIf(find_executable('rpm') is None,
'the rpm command is not found')
@unittest.skipIf(find_executable('rpmbuild') is None,
@@ -90,6 +89,7 @@ class BuildRpmTestCase(support.TempdirManager,
# spurious sdtout/stderr output under Mac OS X
@unittest.skipUnless(sys.platform.startswith('linux'),
'spurious sdtout/stderr output under Mac OS X')
+ @requires_zlib
# http://bugs.python.org/issue1533164
@unittest.skipIf(find_executable('rpm') is None,
'the rpm command is not found')