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

Py3 test fix

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