Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
59addd60
Commit
59addd60
authored
Oct 23, 2016
by
Serhiy Storchaka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some distutils tests require zlib for creating tar.gz source distribution.
parent
abcd5d5f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
Lib/distutils/tests/test_bdist_rpm.py
Lib/distutils/tests/test_bdist_rpm.py
+7
-0
No files found.
Lib/distutils/tests/test_bdist_rpm.py
View file @
59addd60
...
...
@@ -8,6 +8,11 @@ import shutil
from
test.test_support
import
run_unittest
try
:
import
zlib
except
ImportError
:
zlib
=
None
from
distutils.core
import
Distribution
from
distutils.command.bdist_rpm
import
bdist_rpm
from
distutils.tests
import
support
...
...
@@ -44,6 +49,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'
)
@
unittest
.
skipUnless
(
zlib
,
"requires zlib"
)
@
unittest
.
skipIf
(
find_executable
(
'rpm'
)
is
None
,
'the rpm command is not found'
)
@
unittest
.
skipIf
(
find_executable
(
'rpmbuild'
)
is
None
,
...
...
@@ -86,6 +92,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'
)
@
unittest
.
skipUnless
(
zlib
,
"requires zlib"
)
# http://bugs.python.org/issue1533164
@
unittest
.
skipIf
(
find_executable
(
'rpm'
)
is
None
,
'the rpm command is not found'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment