Commit 17ebc936 authored by Stefan Behnel's avatar Stefan Behnel

Py3 test fix

parent df26fdeb
......@@ -11,13 +11,13 @@ def number_index(x):
1
>>> try: number_index(1.1)
... except TypeError: pass
... else: print "FAILED"
... else: print("FAILED")
>>> try: number_index(1j)
... except TypeError: pass
... else: print "FAILED"
... else: print("FAILED")
>>> try: number_index('abc')
... except TypeError: pass
... else: print "FAILED"
... else: print("FAILED")
"""
# was not available in Py2.4
return PyNumber_Index(x)
......
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