Commit 1b7a91a2 authored by Robert Bradshaw's avatar Robert Bradshaw

Fix unraisable tests.

parent dfd948a6
...@@ -53,6 +53,7 @@ cdef int write_unraisable() nogil: ...@@ -53,6 +53,7 @@ cdef int write_unraisable() nogil:
def test_unraisable(): def test_unraisable():
""" """
>>> print(test_unraisable()) # doctest: +ELLIPSIS >>> print(test_unraisable()) # doctest: +ELLIPSIS
ValueError
Exception...ignored... Exception...ignored...
""" """
import sys import sys
......
...@@ -276,9 +276,11 @@ cdef void void_nogil_nested_gil() nogil: ...@@ -276,9 +276,11 @@ cdef void void_nogil_nested_gil() nogil:
def test_nogil_void_funcs_with_gil(): def test_nogil_void_funcs_with_gil():
""" """
>>> redirect_stderr(test_nogil_void_funcs_with_gil) # doctest: +ELLIPSIS >>> redirect_stderr(test_nogil_void_funcs_with_gil) # doctest: +ELLIPSIS
with_gil.ExceptionWithMsg: This is swallowed
Exception... ignored... Exception... ignored...
Inner gil section Inner gil section
nogil section nogil section
...
Exception... ignored... Exception... ignored...
""" """
void_nogil_ignore_exception() void_nogil_ignore_exception()
...@@ -287,9 +289,11 @@ def test_nogil_void_funcs_with_gil(): ...@@ -287,9 +289,11 @@ def test_nogil_void_funcs_with_gil():
def test_nogil_void_funcs_with_nogil(): def test_nogil_void_funcs_with_nogil():
""" """
>>> redirect_stderr(test_nogil_void_funcs_with_nogil) # doctest: +ELLIPSIS >>> redirect_stderr(test_nogil_void_funcs_with_nogil) # doctest: +ELLIPSIS
with_gil.ExceptionWithMsg: This is swallowed
Exception... ignored... Exception... ignored...
Inner gil section Inner gil section
nogil section nogil section
with_gil.ExceptionWithMsg: Swallow this
Exception... ignored... Exception... ignored...
""" """
with nogil: with nogil:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment