From 1b7a91a2c2aea7d3a25e8f0bf3689b106d673201 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw <robertwb@gmail.com> Date: Sat, 27 May 2017 17:44:19 -0700 Subject: [PATCH] Fix unraisable tests. --- tests/run/nogil.pyx | 1 + tests/run/with_gil.pyx | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/tests/run/nogil.pyx b/tests/run/nogil.pyx index c4abaf6f5..c6f6d8b53 100644 --- a/tests/run/nogil.pyx +++ b/tests/run/nogil.pyx @@ -53,6 +53,7 @@ cdef int write_unraisable() nogil: def test_unraisable(): """ >>> print(test_unraisable()) # doctest: +ELLIPSIS + ValueError Exception...ignored... """ import sys diff --git a/tests/run/with_gil.pyx b/tests/run/with_gil.pyx index ef4599d75..db2a61938 100644 --- a/tests/run/with_gil.pyx +++ b/tests/run/with_gil.pyx @@ -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: -- 2.30.9