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
1b7a91a2
Commit
1b7a91a2
authored
May 27, 2017
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix unraisable tests.
parent
dfd948a6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
tests/run/nogil.pyx
tests/run/nogil.pyx
+1
-0
tests/run/with_gil.pyx
tests/run/with_gil.pyx
+4
-0
No files found.
tests/run/nogil.pyx
View file @
1b7a91a2
...
...
@@ -53,6 +53,7 @@ cdef int write_unraisable() nogil:
def
test_unraisable
():
"""
>>> print(test_unraisable()) # doctest: +ELLIPSIS
ValueError
Exception...ignored...
"""
import
sys
...
...
tests/run/with_gil.pyx
View file @
1b7a91a2
...
...
@@ -276,9 +276,11 @@ cdef void void_nogil_nested_gil() nogil:
def
test_nogil_void_funcs_with_gil
():
"""
>>> redirect_stderr(test_nogil_void_funcs_with_gil) # doctest: +ELLIPSIS
with_gil.ExceptionWithMsg: This is swallowed
Exception... ignored...
Inner gil section
nogil section
...
Exception... ignored...
"""
void_nogil_ignore_exception
()
...
...
@@ -287,9 +289,11 @@ def test_nogil_void_funcs_with_gil():
def
test_nogil_void_funcs_with_nogil
():
"""
>>> redirect_stderr(test_nogil_void_funcs_with_nogil) # doctest: +ELLIPSIS
with_gil.ExceptionWithMsg: This is swallowed
Exception... ignored...
Inner gil section
nogil section
with_gil.ExceptionWithMsg: Swallow this
Exception... ignored...
"""
with
nogil
:
...
...
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