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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
cython
Commits
fa4ab86f
Commit
fa4ab86f
authored
Dec 04, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Python 2.3 fix
parent
112cde8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
11 deletions
+17
-11
runtests.py
runtests.py
+17
-11
No files found.
runtests.py
View file @
fa4ab86f
...
...
@@ -9,7 +9,6 @@ import shutil
import
unittest
import
doctest
import
operator
import
subprocess
import
tempfile
import
traceback
try
:
...
...
@@ -731,18 +730,25 @@ class EndToEndTest(unittest.TestCase):
commands
=
(
self
.
commands
.
replace
(
"CYTHON"
,
"PYTHON %s"
%
os
.
path
.
join
(
self
.
cython_root
,
'cython.py'
))
.
replace
(
"PYTHON"
,
sys
.
executable
))
old_path
=
os
.
environ
.
get
(
'PYTHONPATH'
)
try
:
old_path
=
os
.
environ
.
get
(
'PYTHONPATH'
)
os
.
environ
[
'PYTHONPATH'
]
=
os
.
path
.
join
(
self
.
cython_syspath
,
(
old_path
or
''
))
p
=
subprocess
.
Popen
(
commands
,
stderr
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
shell
=
True
)
res
=
p
.
wait
()
if
res
!=
0
:
print
p
.
stdout
.
read
()
print
p
.
stderr
.
read
()
self
.
assertEqual
(
0
,
res
)
for
command
in
commands
.
split
(
'
\
n
'
):
if
sys
.
version_info
[:
2
]
>=
(
2
,
4
):
import
subprocess
p
=
subprocess
.
Popen
(
commands
,
stderr
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
shell
=
True
)
out
,
err
=
p
.
communicate
()
res
=
p
.
returncode
if
res
!=
0
:
print
command
print
out
print
err
else
:
res
=
os
.
system
(
command
)
self
.
assertEqual
(
0
,
res
,
"non-zero exit status"
)
finally
:
if
old_path
:
os
.
environ
[
'PYTHONPATH'
]
=
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