]> granicus.if.org Git - python/commitdiff
Actually call the object with an __call__ method, instead of just
authorJeremy Hylton <jeremy@alum.mit.edu>
Wed, 3 Jan 2001 23:53:31 +0000 (23:53 +0000)
committerJeremy Hylton <jeremy@alum.mit.edu>
Wed, 3 Jan 2001 23:53:31 +0000 (23:53 +0000)
checking if it is callable.  This is the only place in the test suite
where an __call__ method is called.

Lib/test/test_b1.py

index 8adcbefa95132da600f591cfc7b26518c2a0cd3a..6e85453d9987677a32fb61b8f63372a1b82cf73e 100644 (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)'