From: Jeremy Hylton Date: Wed, 3 Jan 2001 23:53:31 +0000 (+0000) Subject: Actually call the object with an __call__ method, instead of just X-Git-Tag: v2.1a1~436 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5ab366119e5daef31e20d3826128a1d70b9ff83c;p=python 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. --- diff --git a/Lib/test/test_b1.py b/Lib/test/test_b1.py index 8adcbefa95..6e85453d99 100644 --- a/Lib/test/test_b1.py +++ b/Lib/test/test_b1.py @@ -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)'