Commit f8409eec authored by Stefan Behnel's avatar Stefan Behnel

extend test case

parent 34720a7d
......@@ -20,6 +20,18 @@ def with_cdef():
cdef dict dd = {}
dd[ob] = -10
def with_external_list(list L):
"""
>>> with_external_list([1,2,3])
[1, -10, 3]
>>> with_external_list(None)
Traceback (most recent call last):
TypeError: 'NoneType' object is not subscriptable
"""
ob = 1L
L[ob] = -10
return L
def test_list(list L, object i, object a):
"""
>>> test_list(list(range(11)), -2, None)
......
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