Commit e086c7e7 authored by Georg Brandl's avatar Georg Brandl

Add test for classmethod ./. keyword args.

parent 43ef9d8b
...@@ -1493,6 +1493,14 @@ def classmethods(): ...@@ -1493,6 +1493,14 @@ def classmethods():
else: else:
raise TestFailed, "classmethod should check for callability" 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(): def classmethods_in_c():
if verbose: print "Testing C-based class methods..." if verbose: print "Testing C-based class methods..."
import xxsubtype as spam import xxsubtype as spam
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment