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
f1fd388c
Commit
f1fd388c
authored
Feb 17, 2012
by
Éric Araujo
Browse files
Options
Browse Files
Download
Plain Diff
Branch merge
parents
082f177c
2180ee64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
Lib/packaging/tests/support.py
Lib/packaging/tests/support.py
+1
-1
Lib/packaging/tests/test_util.py
Lib/packaging/tests/test_util.py
+5
-0
No files found.
Lib/packaging/tests/support.py
View file @
f1fd388c
...
...
@@ -342,7 +342,7 @@ def _get_xxmodule_path():
srcdir
=
sysconfig
.
get_config_var
(
'projectbase'
)
path
=
os
.
path
.
join
(
os
.
getcwd
(),
srcdir
,
'Modules'
,
'xxmodule.c'
)
else
:
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'xxmodule.c'
)
path
=
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
'xxmodule.c'
)
if
os
.
path
.
exists
(
path
):
return
path
...
...
Lib/packaging/tests/test_util.py
View file @
f1fd388c
...
...
@@ -173,6 +173,11 @@ class UtilTestCase(support.EnvironRestorer,
sys
.
stdout
=
self
.
old_stdout
sys
.
stderr
=
self
.
old_stderr
def
test_set_platform
(
self
):
self
.
addCleanup
(
util
.
set_platform
,
util
.
get_platform
())
util
.
set_platform
(
"fake"
)
self
.
assertEqual
(
"fake"
,
util
.
get_platform
())
def
test_convert_path
(
self
):
# linux/mac
os
.
sep
=
'/'
...
...
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