diff --git a/tests/run/slice2.pyx b/tests/run/slice2.pyx
index 1cc322e73839c29fff79e1ae1b0089ffbe5d0194..7c7cd37953bbb437ec726d8cf5b27a5a0a5aed9c 100644
--- a/tests/run/slice2.pyx
+++ b/tests/run/slice2.pyx
@@ -7,9 +7,8 @@ def f(obj1, obj2, obj3, obj4):
     True
     >>> l is f(1, l, 2, 3)
     False
-    >>> f(1, 42, 2, 3)  #doctest: +ELLIPSIS
-    Traceback (most recent call last):
-    TypeError: ...unsliceable...
+    >>> try: f(1, 42, 2, 3)
+    ... except TypeError: pass
     """
     obj1 = obj2[:]
     return obj1
@@ -18,9 +17,8 @@ def g(obj1, obj2, obj3, obj4):
     """
     >>> g(1, [1,2,3,4], 2, 3)
     [3, 4]
-    >>> g(1, 42, 2, 3)  #doctest: +ELLIPSIS
-    Traceback (most recent call last):
-    TypeError: ...unsliceable...
+    >>> try: g(1, 42, 2, 3)
+    ... except TypeError: pass
     """
     obj1 = obj2[obj3:]
     return obj1
@@ -29,9 +27,8 @@ def h(obj1, obj2, obj3, obj4):
     """
     >>> h(1, [1,2,3,4], 2, 3)
     [1, 2, 3]
-    >>> h(1, 42, 2, 3)  #doctest: +ELLIPSIS
-    Traceback (most recent call last):
-    TypeError: ...unsliceable...
+    >>> try: h(1, 42, 2, 3)
+    ... except TypeError: pass
     """
     obj1 = obj2[:obj4]
     return obj1
@@ -40,9 +37,8 @@ def j(obj1, obj2, obj3, obj4):
     """
     >>> j(1, [1,2,3,4], 2, 3)
     [3]
-    >>> j(1, 42, 2, 3)  #doctest: +ELLIPSIS
-    Traceback (most recent call last):
-    TypeError: ...unsliceable...
+    >>> try: j(1, 42, 2, 3)
+    ... except TypeError: pass
     """
     obj1 = obj2[obj3:obj4]
     return obj1