None dict getitem test.
authorRobert Bradshaw <robertwb@math.washington.edu>
Tue, 23 Feb 2010 07:46:17 +0000 (23:46 -0800)
committerRobert Bradshaw <robertwb@math.washington.edu>
Tue, 23 Feb 2010 07:46:17 +0000 (23:46 -0800)
tests/run/dict_getitme.pyx

index c43e5a247443a00bc819f94a509687595ec89bcf..68412f7b3b8a4a5f0e10a427c8e477fe98a61685 100644 (file)
@@ -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]