summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-09-01 22:27:57 (GMT)
committerBenjamin Peterson <benjamin@python.org>2009-09-01 22:27:57 (GMT)
commit6fcf9b50bc13d757096822ba996fa3c122b70c6b (patch)
tree473ddc3cce22f1c84d6ca1d739291a46f3a6544a /Lib/test/test_descr.py
parent8514b85edc420aa1f91c443e7e11629855a170d3 (diff)
downloadcpython-6fcf9b50bc13d757096822ba996fa3c122b70c6b.zip
cpython-6fcf9b50bc13d757096822ba996fa3c122b70c6b.tar.gz
cpython-6fcf9b50bc13d757096822ba996fa3c122b70c6b.tar.bz2
remove the check that classmethod's argument is a callable
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py10
1 files changed, 3 insertions, 7 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 6dc27be..00f19ce 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -1391,13 +1391,9 @@ order (MRO) for bases """
self.assertEqual(super(D,D).goo(), (D,))
self.assertEqual(super(D,d).goo(), (D,))
- # Verify that argument is checked for callability (SF bug 753451)
- try:
- classmethod(1).__get__(1)
- except TypeError:
- pass
- else:
- self.fail("classmethod should check for callability")
+ # Verify that a non-callable will raise
+ meth = classmethod(1).__get__(1)
+ self.assertRaises(TypeError, meth)
# Verify that classmethod() doesn't allow keyword args
try: