Commit 4cda4f13 authored by Stefan Behnel's avatar Stefan Behnel

adapted doctest for PyPy

parent 08ca5148
...@@ -26,8 +26,7 @@ def test_list(list L, object i, object a): ...@@ -26,8 +26,7 @@ def test_list(list L, object i, object a):
[0, 1, 2, 3, 4, 5, 6, 7, 8, None, 10] [0, 1, 2, 3, 4, 5, 6, 7, 8, None, 10]
>>> test_list(list(range(11)), "invalid index", None) #doctest: +ELLIPSIS >>> test_list(list(range(11)), "invalid index", None) #doctest: +ELLIPSIS
Traceback (most recent call last): Traceback (most recent call last):
... TypeError: list ... must be ...integer...
TypeError: list indices must be integers...
""" """
L[i] = a L[i] = a
return L return L
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