Commit cfdfe4fa authored by Stefan Behnel's avatar Stefan Behnel

enabled test case

--HG--
rename : tests/broken/getattr3call.pyx => tests/run/getattr3call.pyx
parent 9341dc72
cdef int f(a, b, c) except -1:
d = getattr3(a, b, c)
__doc__ = """
>>> class test(object): a = 1
>>> t = test()
>>> f(t, 'a')
1
>>> f(t, 'b')
Traceback (most recent call last):
AttributeError: 'test' object has no attribute 'b'
>>> g(t, 'a', 2)
1
>>> g(t, 'b', 2)
2
"""
BROKEN = """
>>> h(t, 'a', 2)
1
>>> h(t, 'b', 2)
2
"""
def f(a, b):
return getattr(a, b)
def g(a, b, c):
return getattr3(a, b, c)
#def h(a, b, c):
# return getattr(a, b, c)
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