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
e1177d9d
Commit
e1177d9d
authored
May 23, 2011
by
Tarek Ziade
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #12125: fixed the failures under Solaris due to improper test cleanup.
parent
fabc3083
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
1 deletion
+16
-1
Lib/packaging/tests/test_create.py
Lib/packaging/tests/test_create.py
+1
-1
Lib/packaging/tests/test_manifest.py
Lib/packaging/tests/test_manifest.py
+8
-0
Lib/packaging/tests/test_uninstall.py
Lib/packaging/tests/test_uninstall.py
+5
-0
Misc/NEWS
Misc/NEWS
+2
-0
No files found.
Lib/packaging/tests/test_create.py
View file @
e1177d9d
...
...
@@ -31,11 +31,11 @@ class CreateTestCase(support.TempdirManager,
'doc'
:
sys
.
prefix
+
'/share/doc/pyxfoil'
,
}
def
tearDown
(
self
):
super
(
CreateTestCase
,
self
).
tearDown
()
sys
.
stdin
=
self
.
_stdin
sys
.
stdout
=
self
.
_stdout
os
.
chdir
(
self
.
_cwd
)
sysconfig
.
get_paths
=
self
.
_old_get_paths
super
(
CreateTestCase
,
self
).
tearDown
()
def
test_ask_yn
(
self
):
sys
.
stdin
.
write
(
'y
\
n
'
)
...
...
Lib/packaging/tests/test_manifest.py
View file @
e1177d9d
...
...
@@ -26,6 +26,14 @@ class ManifestTestCase(support.TempdirManager,
support
.
LoggingCatcher
,
unittest
.
TestCase
):
def
setUp
(
self
):
super
(
ManifestTestCase
,
self
).
setUp
()
self
.
cwd
=
os
.
getcwd
()
def
tearDown
(
self
):
os
.
chdir
(
self
.
cwd
)
super
(
ManifestTestCase
,
self
).
tearDown
()
def
test_manifest_reader
(
self
):
tmpdir
=
self
.
mkdtemp
()
MANIFEST
=
os
.
path
.
join
(
tmpdir
,
'MANIFEST.in'
)
...
...
Lib/packaging/tests/test_uninstall.py
View file @
e1177d9d
...
...
@@ -36,8 +36,13 @@ class UninstallTestCase(support.TempdirManager,
self
.
addCleanup
(
os
.
chdir
,
os
.
getcwd
())
self
.
addCleanup
(
enable_cache
)
self
.
root_dir
=
self
.
mkdtemp
()
self
.
cwd
=
os
.
getcwd
()
disable_cache
()
def
tearDown
(
self
):
os
.
chdir
(
self
.
cwd
)
super
(
UninstallTestCase
,
self
).
tearDown
()
def
run_setup
(
self
,
*
args
):
# run setup with args
args
=
[
'run'
]
+
list
(
args
)
...
...
Misc/NEWS
View file @
e1177d9d
...
...
@@ -153,6 +153,8 @@ Core and Builtins
Library
-------
- Issue #12125: fixed the failures under Solaris due to improper test cleanup.
- Issue #6501: os.device_encoding() returns None on Windows if the application
has no console.
...
...
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