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
0b799319
Commit
0b799319
authored
Jan 01, 2015
by
Jason R. Coombs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert select tests to pytest model.
parent
f8285cac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
setuptools/tests/test_easy_install.py
setuptools/tests/test_easy_install.py
+6
-6
No files found.
setuptools/tests/test_easy_install.py
View file @
0b799319
...
...
@@ -133,9 +133,9 @@ class TestPTHFileWriter(unittest.TestCase):
self
.
assertTrue
(
not
pth
.
dirty
)
class
TestUserInstallTest
(
unittest
.
TestCase
)
:
class
TestUserInstallTest
:
def
set
Up
(
self
):
def
set
up_method
(
self
,
method
):
self
.
dir
=
tempfile
.
mkdtemp
()
setup
=
os
.
path
.
join
(
self
.
dir
,
'setup.py'
)
with
open
(
setup
,
'w'
)
as
f
:
...
...
@@ -151,7 +151,7 @@ class TestUserInstallTest(unittest.TestCase):
site
.
USER_SITE
=
tempfile
.
mkdtemp
()
easy_install_pkg
.
__file__
=
site
.
USER_SITE
def
tear
Down
(
self
):
def
tear
down_method
(
self
,
method
):
os
.
chdir
(
self
.
old_cwd
)
shutil
.
rmtree
(
self
.
dir
)
...
...
@@ -170,7 +170,7 @@ class TestUserInstallTest(unittest.TestCase):
cmd
=
easy_install
(
dist
)
cmd
.
args
=
[
'py'
]
cmd
.
ensure_finalized
()
self
.
assertTrue
(
cmd
.
user
,
'user should be implied'
)
assert
cmd
.
user
,
'user should be implied'
def
test_multiproc_atexit
(
self
):
try
:
...
...
@@ -191,7 +191,7 @@ class TestUserInstallTest(unittest.TestCase):
cmd
=
easy_install
(
dist
)
cmd
.
args
=
[
'py'
]
cmd
.
initialize_options
()
self
.
assertFalse
(
cmd
.
user
,
'NOT user should be implied'
)
assert
not
cmd
.
user
,
'NOT user should be implied'
def
test_local_index
(
self
):
# make sure the local index is used
...
...
@@ -217,7 +217,7 @@ class TestUserInstallTest(unittest.TestCase):
res
=
cmd
.
easy_install
(
'foo'
)
actual
=
os
.
path
.
normcase
(
os
.
path
.
realpath
(
res
.
location
))
expected
=
os
.
path
.
normcase
(
os
.
path
.
realpath
(
new_location
))
self
.
assertEqual
(
actual
,
expected
)
assert
actual
==
expected
finally
:
sys
.
path
.
remove
(
target
)
for
basedir
in
[
new_location
,
target
,
]:
...
...
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