Add test for classmethod ./. keyword args.
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index d612766..2f12e96 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -1493,6 +1493,14 @@
else:
raise TestFailed, "classmethod should check for callability"
+ # Verify that classmethod() doesn't allow keyword args
+ try:
+ classmethod(f, kw=1)
+ except TypeError:
+ pass
+ else:
+ raise TestFailed, "classmethod shouldn't accept keyword args"
+
def classmethods_in_c():
if verbose: print "Testing C-based class methods..."
import xxsubtype as spam