Commit 1dfa9ac5 authored by Stefan Behnel's avatar Stefan Behnel

work around for exception output change in Py3.4

parent 265b8bad
...@@ -276,10 +276,10 @@ cdef void void_nogil_nested_gil() nogil: ...@@ -276,10 +276,10 @@ 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
Exception ...ExceptionWithMsg: ExceptionWithMsg('This is swallowed') in 'with_gil.void_nogil_ignore_exception' ignored Exception... ignored...
Inner gil section Inner gil section
nogil section nogil section
Exception ...ExceptionWithMsg: ExceptionWithMsg('Swallow this') in 'with_gil.void_nogil_nested_gil' ignored Exception... ignored...
""" """
void_nogil_ignore_exception() void_nogil_ignore_exception()
void_nogil_nested_gil() void_nogil_nested_gil()
...@@ -287,10 +287,10 @@ def test_nogil_void_funcs_with_gil(): ...@@ -287,10 +287,10 @@ 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
Exception ...ExceptionWithMsg: ExceptionWithMsg('This is swallowed') in 'with_gil.void_nogil_ignore_exception' ignored Exception... ignored...
Inner gil section Inner gil section
nogil section nogil section
Exception ...ExceptionWithMsg: ExceptionWithMsg('Swallow this') in 'with_gil.void_nogil_nested_gil' ignored Exception... ignored...
""" """
with nogil: with nogil:
void_nogil_ignore_exception() void_nogil_ignore_exception()
......
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