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
463643e2
Commit
463643e2
authored
Oct 22, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix end-to-end test setup in Py3
parent
c1fc77d5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
runtests.py
runtests.py
+10
-1
No files found.
runtests.py
View file @
463643e2
...
@@ -640,6 +640,14 @@ class EndToEndTest(unittest.TestCase):
...
@@ -640,6 +640,14 @@ class EndToEndTest(unittest.TestCase):
self
.
treefile
=
treefile
self
.
treefile
=
treefile
self
.
workdir
=
os
.
path
.
join
(
workdir
,
os
.
path
.
splitext
(
treefile
)[
0
])
self
.
workdir
=
os
.
path
.
join
(
workdir
,
os
.
path
.
splitext
(
treefile
)[
0
])
self
.
cleanup_workdir
=
cleanup_workdir
self
.
cleanup_workdir
=
cleanup_workdir
cython_syspath
=
self
.
cython_root
for
path
in
sys
.
path
[::
-
1
]:
if
path
.
startswith
(
self
.
cython_root
):
# Py3 installation and refnanny build prepend their
# fixed paths to sys.path => prefer that over the
# generic one
cython_syspath
=
path
+
os
.
pathsep
+
cython_syspath
self
.
cython_syspath
=
cython_syspath
unittest
.
TestCase
.
__init__
(
self
)
unittest
.
TestCase
.
__init__
(
self
)
def
shortDescription
(
self
):
def
shortDescription
(
self
):
...
@@ -664,7 +672,8 @@ class EndToEndTest(unittest.TestCase):
...
@@ -664,7 +672,8 @@ class EndToEndTest(unittest.TestCase):
.
replace
(
"PYTHON"
,
sys
.
executable
))
.
replace
(
"PYTHON"
,
sys
.
executable
))
old_path
=
os
.
environ
.
get
(
'PYTHONPATH'
)
old_path
=
os
.
environ
.
get
(
'PYTHONPATH'
)
try
:
try
:
os
.
environ
[
'PYTHONPATH'
]
=
self
.
cython_root
+
os
.
pathsep
+
(
old_path
or
''
)
os
.
environ
[
'PYTHONPATH'
]
=
self
.
cython_syspath
+
os
.
pathsep
+
(
old_path
or
''
)
print
(
os
.
environ
[
'PYTHONPATH'
])
self
.
assertEqual
(
0
,
os
.
system
(
commands
))
self
.
assertEqual
(
0
,
os
.
system
(
commands
))
finally
:
finally
:
if
old_path
:
if
old_path
:
...
...
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