mirror of https://github.com/python/cpython.git
Actually call the object with an __call__ method, instead of just
checking if it is callable. This is the only place in the test suite where an __call__ method is called.
This commit is contained in:
parent
5282044be7
commit
5ab366119e
|
@ -53,6 +53,7 @@ class D(C):
|
|||
def __call__(self): pass
|
||||
y = D()
|
||||
if not callable(y): raise TestFailed, 'callable(y)'
|
||||
y()
|
||||
|
||||
print 'chr'
|
||||
if chr(32) != ' ': raise TestFailed, 'chr(32)'
|
||||
|
|
Loading…
Reference in New Issue