Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
setuptools
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jérome Perrin
setuptools
Commits
06106987
Commit
06106987
authored
Sep 21, 2009
by
Tarek Ziadé
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improving distutils coverage
parent
e16bbeaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
0 deletions
+22
-0
tests/test_dist.py
tests/test_dist.py
+22
-0
No files found.
tests/test_dist.py
View file @
06106987
...
...
@@ -9,6 +9,7 @@ import warnings
from
distutils.dist
import
Distribution
,
fix_help_options
from
distutils.cmd
import
Command
import
distutils.dist
from
test.test_support
import
TESTFN
,
captured_stdout
from
distutils.tests
import
support
...
...
@@ -56,6 +57,27 @@ class DistributionTestCase(support.TempdirManager,
d
.
parse_command_line
()
return
d
def
test_debug_mode
(
self
):
with
open
(
TESTFN
,
"w"
)
as
f
:
f
.
write
(
"[global]"
)
f
.
write
(
"command_packages = foo.bar, splat"
)
files
=
[
TESTFN
]
sys
.
argv
.
append
(
"build"
)
with
captured_stdout
()
as
stdout
:
self
.
create_distribution
(
files
)
stdout
.
seek
(
0
)
self
.
assertEquals
(
stdout
.
read
(),
''
)
distutils
.
dist
.
DEBUG
=
True
try
:
with
captured_stdout
()
as
stdout
:
self
.
create_distribution
(
files
)
stdout
.
seek
(
0
)
self
.
assertEquals
(
stdout
.
read
(),
''
)
finally
:
distutils
.
dist
.
DEBUG
=
False
def
test_command_packages_unspecified
(
self
):
sys
.
argv
.
append
(
"build"
)
d
=
self
.
create_distribution
()
...
...
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