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
09874820
Commit
09874820
authored
Jul 27, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prevent compiler error output in coroutine error tests
parent
6f51454c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
tests/run/test_coroutines_pep492.pyx
tests/run/test_coroutines_pep492.pyx
+11
-1
No files found.
tests/run/test_coroutines_pep492.pyx
View file @
09874820
...
@@ -56,7 +56,17 @@ except ImportError:
...
@@ -56,7 +56,17 @@ except ImportError:
# compiled exec()
# compiled exec()
def
exec
(
code_string
,
l
,
g
):
def
exec
(
code_string
,
l
,
g
):
from
Cython.Shadow
import
inline
from
Cython.Shadow
import
inline
try
:
from
StringIO
import
StringIO
except
ImportError
:
from
io
import
StringIO
old_stderr
=
sys
.
stderr
try
:
sys
.
stderr
=
StringIO
()
ns
=
inline
(
code_string
,
locals
=
l
,
globals
=
g
,
lib_dir
=
os
.
path
.
dirname
(
__file__
))
ns
=
inline
(
code_string
,
locals
=
l
,
globals
=
g
,
lib_dir
=
os
.
path
.
dirname
(
__file__
))
finally
:
sys
.
stderr
=
old_stderr
g
.
update
(
ns
)
g
.
update
(
ns
)
...
...
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