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
c5111b5b
Commit
c5111b5b
authored
Sep 10, 2016
by
Steve Dower
Browse files
Options
Browse Files
Download
Plain Diff
Closes #28059: Fixes test_platform to set PYTHONPATH for .pyd files
parents
82cb1243
109bc3aa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Lib/test/test_platform.py
Lib/test/test_platform.py
+3
-2
No files found.
Lib/test/test_platform.py
View file @
c5111b5b
...
...
@@ -15,8 +15,8 @@ class PlatformTest(unittest.TestCase):
@
support
.
skip_unless_symlink
def
test_architecture_via_symlink
(
self
):
# issue3762
# On Windows, the EXE needs to know where pythonXY.dll
is at so we have
#
to add the directory to the path
.
# On Windows, the EXE needs to know where pythonXY.dll
and *.pyd is at
#
so we add the directory to the path and PYTHONPATH
.
if
sys
.
platform
==
"win32"
:
def
restore_environ
(
old_env
):
os
.
environ
.
clear
()
...
...
@@ -26,6 +26,7 @@ class PlatformTest(unittest.TestCase):
os
.
environ
[
"Path"
]
=
"{};{}"
.
format
(
os
.
path
.
dirname
(
sys
.
executable
),
os
.
environ
[
"Path"
])
os
.
environ
[
"PYTHONPATH"
]
=
os
.
path
.
dirname
(
sys
.
executable
)
def
get
(
python
):
cmd
=
[
python
,
'-c'
,
...
...
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