Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
076235e7
Commit
076235e7
authored
Jul 18, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test case for #494, function binding.
parent
53e50941
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
tests/bugs.txt
tests/bugs.txt
+1
-0
tests/run/function_as_method_T494.pyx
tests/run/function_as_method_T494.pyx
+13
-0
No files found.
tests/bugs.txt
View file @
076235e7
...
@@ -12,6 +12,7 @@ compile.cpp_operators
...
@@ -12,6 +12,7 @@ compile.cpp_operators
cpp_templated_ctypedef
cpp_templated_ctypedef
cpp_structs
cpp_structs
with_statement_module_level_T536
with_statement_module_level_T536
function_as_method_T494
# CPython regression tests that don't current work:
# CPython regression tests that don't current work:
pyregr.test_threadsignals
pyregr.test_threadsignals
...
...
tests/run/function_as_method_T494.pyx
0 → 100644
View file @
076235e7
__doc__
=
"""
>>> A.foo = foo
>>> print A().foo()
"""
class
A
:
pass
def
foo
(
self
):
return
self
is
not
None
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