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
8e92f1c1
Commit
8e92f1c1
authored
Jul 10, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix with_gil test in PyPy
parent
31375964
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
9 deletions
+7
-9
tests/run/with_gil.pyx
tests/run/with_gil.pyx
+7
-9
No files found.
tests/run/with_gil.pyx
View file @
8e92f1c1
...
...
@@ -3,9 +3,7 @@ Test the 'with gil:' statement.
"""
cimport
cython
#from libc.stdio cimport printf, puts
from
cpython
cimport
PyObject
,
Py_INCREF
from
cpython.ref
cimport
PyObject
import
sys
...
...
@@ -277,22 +275,22 @@ cdef void void_nogil_nested_gil() nogil:
def
test_nogil_void_funcs_with_gil
():
"""
>>> redirect_stderr(test_nogil_void_funcs_with_gil)
Exception
with_gil
.ExceptionWithMsg: ExceptionWithMsg('This is swallowed') in 'with_gil.void_nogil_ignore_exception' ignored
>>> redirect_stderr(test_nogil_void_funcs_with_gil)
# doctest: +ELLIPSIS
Exception
..
.ExceptionWithMsg: ExceptionWithMsg('This is swallowed') in 'with_gil.void_nogil_ignore_exception' ignored
Inner gil section
nogil section
Exception
with_gil
.ExceptionWithMsg: ExceptionWithMsg('Swallow this') in 'with_gil.void_nogil_nested_gil' ignored
Exception
..
.ExceptionWithMsg: ExceptionWithMsg('Swallow this') in 'with_gil.void_nogil_nested_gil' ignored
"""
void_nogil_ignore_exception
()
void_nogil_nested_gil
()
def
test_nogil_void_funcs_with_nogil
():
"""
>>> redirect_stderr(test_nogil_void_funcs_with_nogil)
Exception
with_gil
.ExceptionWithMsg: ExceptionWithMsg('This is swallowed') in 'with_gil.void_nogil_ignore_exception' ignored
>>> redirect_stderr(test_nogil_void_funcs_with_nogil)
# doctest: +ELLIPSIS
Exception
..
.ExceptionWithMsg: ExceptionWithMsg('This is swallowed') in 'with_gil.void_nogil_ignore_exception' ignored
Inner gil section
nogil section
Exception
with_gil
.ExceptionWithMsg: ExceptionWithMsg('Swallow this') in 'with_gil.void_nogil_nested_gil' ignored
Exception
..
.ExceptionWithMsg: ExceptionWithMsg('Swallow this') in 'with_gil.void_nogil_nested_gil' ignored
"""
with
nogil
:
void_nogil_ignore_exception
()
...
...
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