commit | 5ab366119e5daef31e20d3826128a1d70b9ff83c | [log] [tgz] |
---|---|---|
author | Jeremy Hylton <jeremy@alum.mit.edu> | Wed Jan 03 23:53:31 2001 +0000 |
committer | Jeremy Hylton <jeremy@alum.mit.edu> | Wed Jan 03 23:53:31 2001 +0000 |
tree | e0b89df7456a1215c7709127c7227f15d414b648 | |
parent | 5282044be7e4b5495a43148e478ee2cd5fed8c80 [diff] [blame] |
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 8adcbef..6e85453 100644 --- a/Lib/test/test_b1.py +++ b/Lib/test/test_b1.py
@@ -53,6 +53,7 @@ def __call__(self): pass y = D() if not callable(y): raise TestFailed, 'callable(y)' +y() print 'chr' if chr(32) != ' ': raise TestFailed, 'chr(32)'