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
8ed34a13
Commit
8ed34a13
authored
Oct 06, 2011
by
Éric Araujo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor: improve one test name, address pyflakes warnings
parent
fa23cc84
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
Lib/packaging/tests/test_uninstall.py
Lib/packaging/tests/test_uninstall.py
+4
-6
No files found.
Lib/packaging/tests/test_uninstall.py
View file @
8ed34a13
"""Tests for the
uninstall command
."""
"""Tests for the
packaging.uninstall module
."""
import
os
import
sys
import
logging
from
io
import
StringIO
import
stat
import
packaging.util
from
packaging.database
import
disable_cache
,
enable_cache
from
io
import
StringIO
from
packaging.run
import
main
from
packaging.errors
import
PackagingError
from
packaging.install
import
remove
from
packaging.database
import
disable_cache
,
enable_cache
from
packaging.command.install_dist
import
install_dist
from
packaging.tests
import
unittest
,
support
...
...
@@ -84,7 +83,6 @@ class UninstallTestCase(support.TempdirManager,
if
not
dirname
:
dirname
=
self
.
make_dist
(
name
,
**
kw
)
os
.
chdir
(
dirname
)
old_out
=
sys
.
stderr
sys
.
stderr
=
StringIO
()
dist
=
self
.
run_setup
(
'install_dist'
,
'--prefix='
+
self
.
root_dir
)
site_packages
=
self
.
get_path
(
dist
,
'purelib'
)
...
...
@@ -104,7 +102,7 @@ class UninstallTestCase(support.TempdirManager,
self
.
assertIsNotFile
(
site_packages
,
'foo'
,
'sub'
,
'__init__.py'
)
self
.
assertIsNotFile
(
site_packages
,
'Foo-0.1.dist-info'
,
'RECORD'
)
def
test_
remove_issue
(
self
):
def
test_
uninstall_error_handling
(
self
):
# makes sure if there are OSErrors (like permission denied)
# remove() stops and displays a clean error
dist
,
site_packages
=
self
.
install_dist
(
'Meh'
)
...
...
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