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
Gwenaël Samain
cython
Commits
112cde8b
Commit
112cde8b
authored
Dec 04, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hide output in end-to-end tests
parent
56b25a9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
4 deletions
+13
-4
runtests.py
runtests.py
+13
-4
No files found.
runtests.py
View file @
112cde8b
...
@@ -9,6 +9,7 @@ import shutil
...
@@ -9,6 +9,7 @@ import shutil
import
unittest
import
unittest
import
doctest
import
doctest
import
operator
import
operator
import
subprocess
import
tempfile
import
tempfile
import
traceback
import
traceback
try
:
try
:
...
@@ -714,7 +715,8 @@ class EndToEndTest(unittest.TestCase):
...
@@ -714,7 +715,8 @@ class EndToEndTest(unittest.TestCase):
def
setUp
(
self
):
def
setUp
(
self
):
from
Cython.TestUtils
import
unpack_source_tree
from
Cython.TestUtils
import
unpack_source_tree
_
,
self
.
commands
=
unpack_source_tree
(
os
.
path
.
join
(
'tests'
,
'build'
,
self
.
treefile
),
self
.
workdir
)
_
,
self
.
commands
=
unpack_source_tree
(
os
.
path
.
join
(
'tests'
,
'build'
,
self
.
treefile
),
self
.
workdir
)
self
.
old_dir
=
os
.
getcwd
()
self
.
old_dir
=
os
.
getcwd
()
os
.
chdir
(
self
.
workdir
)
os
.
chdir
(
self
.
workdir
)
if
self
.
workdir
not
in
sys
.
path
:
if
self
.
workdir
not
in
sys
.
path
:
...
@@ -731,9 +733,16 @@ class EndToEndTest(unittest.TestCase):
...
@@ -731,9 +733,16 @@ 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_syspath
+
os
.
pathsep
+
(
old_path
or
''
)
os
.
environ
[
'PYTHONPATH'
]
=
os
.
path
.
join
(
self
.
cython_syspath
,
(
old_path
or
''
))
print
(
os
.
environ
[
'PYTHONPATH'
])
p
=
subprocess
.
Popen
(
commands
,
self
.
assertEqual
(
0
,
os
.
system
(
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
)
finally
:
finally
:
if
old_path
:
if
old_path
:
os
.
environ
[
'PYTHONPATH'
]
=
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