summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_b1.py
diff options
context:
space:
mode:
authorJeremy Hylton <jeremy@alum.mit.edu>2001-01-03 23:53:31 (GMT)
committerJeremy Hylton <jeremy@alum.mit.edu>2001-01-03 23:53:31 (GMT)
commit5ab366119e5daef31e20d3826128a1d70b9ff83c (patch)
treee0b89df7456a1215c7709127c7227f15d414b648 /Lib/test/test_b1.py
parent5282044be7e4b5495a43148e478ee2cd5fed8c80 (diff)
downloadcpython-5ab366119e5daef31e20d3826128a1d70b9ff83c.zip
cpython-5ab366119e5daef31e20d3826128a1d70b9ff83c.tar.gz
cpython-5ab366119e5daef31e20d3826128a1d70b9ff83c.tar.bz2
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.
Diffstat (limited to 'Lib/test/test_b1.py')
-rw-r--r--Lib/test/test_b1.py1
1 files changed, 1 insertions, 0 deletions
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 @@ 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)'