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:
Jeremy Hylton 2001-01-03 23:53:31 +00:00
parent 5282044be7
commit 5ab366119e
1 changed files with 1 additions and 0 deletions

View File

@ -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)'