Commit fc86ece8 authored by Stefan Behnel's avatar Stefan Behnel

Py2.4/2.7 doctest fix

parent 2c1b7967
...@@ -61,11 +61,9 @@ def index_object(object o, int i): ...@@ -61,11 +61,9 @@ def index_object(object o, int i):
'z' 'z'
>>> index_object("abcdef...z", 100) >>> index_object("abcdef...z", 100)
Traceback (most recent call last): Traceback (most recent call last):
...
IndexError: string index out of range IndexError: string index out of range
>>> index_object(None, 0) >>> try: index_object(None, 0)
Traceback (most recent call last): ... except TypeError: pass
TypeError: 'NoneType' object is not subscriptable
""" """
return o[i] return o[i]
......
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