Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e086c7e7
Commit
e086c7e7
authored
Feb 21, 2006
by
Georg Brandl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add test for classmethod ./. keyword args.
parent
43ef9d8b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Lib/test/test_descr.py
Lib/test/test_descr.py
+8
-0
No files found.
Lib/test/test_descr.py
View file @
e086c7e7
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment