From: Robert Bradshaw Date: Tue, 23 Feb 2010 07:46:17 +0000 (-0800) Subject: None dict getitem test. X-Git-Tag: 0.13.beta0~319^2~24 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=69881583aed14cd487ee33f4c92dd46dccfb2631;p=cython.git None dict getitem test. --- diff --git a/tests/run/dict_getitme.pyx b/tests/run/dict_getitme.pyx index c43e5a24..68412f7b 100644 --- a/tests/run/dict_getitme.pyx +++ b/tests/run/dict_getitme.pyx @@ -21,5 +21,10 @@ def test(dict d, index): Traceback (most recent call last): ... ValueError + + >>> test(None, 1) + Traceback (most recent call last): + ... + TypeError: 'NoneType' object is unsubscriptable """ return d[index]