work around for exception output change in Py3.4
authorStefan Behnel <stefan_ml@behnel.de>
Tue, 6 Nov 2012 09:12:04 +0000 (10:12 +0100)
committerStefan Behnel <stefan_ml@behnel.de>
Tue, 6 Nov 2012 09:12:04 +0000 (10:12 +0100)
--HG--
extra : transplant_source : %04A%81%18%40%C9Q%F1%1B%B8t%DC%1C%EB%1B%60%03%AC%02%EC

tests/run/with_gil.pyx

index 5a800f1..ef4599d 100644 (file)
@@ -276,10 +276,10 @@ cdef void void_nogil_nested_gil() nogil:
 def test_nogil_void_funcs_with_gil():
     """
     >>> 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
     nogil section
-    Exception ...ExceptionWithMsg: ExceptionWithMsg('Swallow this') in 'with_gil.void_nogil_nested_gil' ignored
+    Exception... ignored...
     """
     void_nogil_ignore_exception()
     void_nogil_nested_gil()
@@ -287,10 +287,10 @@ def test_nogil_void_funcs_with_gil():
 def test_nogil_void_funcs_with_nogil():
     """
     >>> 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
     nogil section
-    Exception ...ExceptionWithMsg: ExceptionWithMsg('Swallow this') in 'with_gil.void_nogil_nested_gil' ignored
+    Exception... ignored...
     """
     with nogil:
         void_nogil_ignore_exception()