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
477d825d
Commit
477d825d
authored
Feb 05, 2014
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reindent according to TODO (indent was reserved to minimize the diff)
parent
92bed83a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
15 deletions
+14
-15
setuptools/tests/test_easy_install.py
setuptools/tests/test_easy_install.py
+14
-15
No files found.
setuptools/tests/test_easy_install.py
View file @
477d825d
...
...
@@ -261,21 +261,20 @@ class TestSetupRequires(unittest.TestCase):
# so skip this test for them.
return
with
quiet_context
():
# TODO: correct indentation here
# create an sdist that has a build-time dependency.
with
TestSetupRequires
.
create_sdist
()
as
dist_file
:
with
tempdir_context
()
as
temp_install_dir
:
with
environment_context
(
PYTHONPATH
=
temp_install_dir
):
ei_params
=
[
'--index-url'
,
p_index
.
url
,
'--allow-hosts'
,
p_index_loc
,
'--exclude-scripts'
,
'--install-dir'
,
temp_install_dir
,
dist_file
]
with
reset_setup_stop_context
():
with
argv_context
([
'easy_install'
]):
# attempt to install the dist. It should fail because
# it doesn't exist.
self
.
assertRaises
(
SystemExit
,
easy_install_pkg
.
main
,
ei_params
)
# create an sdist that has a build-time dependency.
with
TestSetupRequires
.
create_sdist
()
as
dist_file
:
with
tempdir_context
()
as
temp_install_dir
:
with
environment_context
(
PYTHONPATH
=
temp_install_dir
):
ei_params
=
[
'--index-url'
,
p_index
.
url
,
'--allow-hosts'
,
p_index_loc
,
'--exclude-scripts'
,
'--install-dir'
,
temp_install_dir
,
dist_file
]
with
reset_setup_stop_context
():
with
argv_context
([
'easy_install'
]):
# attempt to install the dist. It should fail because
# it doesn't exist.
self
.
assertRaises
(
SystemExit
,
easy_install_pkg
.
main
,
ei_params
)
# there should have been two or three requests to the server
# (three happens on Python 3.3a)
self
.
assertTrue
(
2
<=
len
(
p_index
.
requests
)
<=
3
)
...
...
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