From 69881583aed14cd487ee33f4c92dd46dccfb2631 Mon Sep 17 00:00:00 2001 From: Robert Bradshaw Date: Mon, 22 Feb 2010 23:46:17 -0800 Subject: [PATCH] None dict getitem test. --- tests/run/dict_getitme.pyx | 5 +++++ 1 file changed, 5 insertions(+) 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] -- 2.26.2