mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Add test for classmethod ./. keyword args.
This commit is contained in:
parent
d02db4084e
commit
6a29c323ba
1 changed files with 8 additions and 0 deletions
|
|
@ -1493,6 +1493,14 @@ def classmethods():
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue