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
80561b7f
Commit
80561b7f
authored
Dec 29, 2014
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pytest to capture exception
parent
19507685
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
setuptools/tests/test_easy_install.py
setuptools/tests/test_easy_install.py
+4
-2
No files found.
setuptools/tests/test_easy_install.py
View file @
80561b7f
...
...
@@ -12,6 +12,8 @@ import tarfile
import
logging
import
distutils.core
import
pytest
from
setuptools.compat
import
StringIO
,
BytesIO
,
urlparse
from
setuptools.sandbox
import
run_setup
,
SandboxViolation
from
setuptools.command.easy_install
import
(
...
...
@@ -278,8 +280,8 @@ class TestSetupRequires(unittest.TestCase):
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
)
with
pytest
.
raises
(
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