Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
33abc027
Commit
33abc027
authored
Oct 04, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix PYTHONPATH setting for end-to-end tests
parent
4d676ccf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
runtests.py
runtests.py
+6
-5
No files found.
runtests.py
View file @
33abc027
...
@@ -662,11 +662,12 @@ class EndToEndTest(unittest.TestCase):
...
@@ -662,11 +662,12 @@ class EndToEndTest(unittest.TestCase):
commands
=
(
self
.
commands
commands
=
(
self
.
commands
.
replace
(
"CYTHON"
,
"PYTHON %s"
%
os
.
path
.
join
(
self
.
cython_root
,
'cython.py'
))
.
replace
(
"CYTHON"
,
"PYTHON %s"
%
os
.
path
.
join
(
self
.
cython_root
,
'cython.py'
))
.
replace
(
"PYTHON"
,
sys
.
executable
))
.
replace
(
"PYTHON"
,
sys
.
executable
))
commands
=
"""
old_path
=
os
.
environ
.
get
(
'PYTHONPATH'
)
PYTHONPATH="%s%s$PYTHONPATH"
try
:
%s
os
.
environ
[
'PYTHONPATH'
]
=
self
.
cython_root
+
os
.
pathsep
+
(
old_path
or
''
)
"""
%
(
self
.
cython_root
,
os
.
pathsep
,
commands
)
self
.
assertEqual
(
0
,
os
.
system
(
commands
))
self
.
assertEqual
(
0
,
os
.
system
(
commands
))
finally
:
os
.
environ
[
'PYTHONPATH'
]
=
old_path
# TODO: Support cython_freeze needed here as well.
# TODO: Support cython_freeze needed here as well.
...
...
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