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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
d7db2112
Commit
d7db2112
authored
Dec 07, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
8f306437
7c2bc399
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
4 deletions
+23
-4
tests/bugs.txt
tests/bugs.txt
+1
-0
tests/run/and.pyx
tests/run/and.pyx
+16
-0
tests/run/cmethod_inline_T474.pyx
tests/run/cmethod_inline_T474.pyx
+6
-4
No files found.
tests/bugs.txt
View file @
d7db2112
...
...
@@ -20,6 +20,7 @@ slice2_T636
builtin_subtype_methods_T653
dict_values_in_expression
builtin_float
inherited_final_method
# CPython regression tests that don't current work:
pyregr.test_signal
...
...
tests/run/and.pyx
View file @
d7db2112
...
...
@@ -59,3 +59,19 @@ def and2_literal():
5
"""
return
True
and
5
def
c_int_results
(
int
x
):
"""
>>> c_int_results(7)
(0, 0)
>>> c_int_results(5)
(1, 1)
"""
cdef
int
expr1
,
expr2
,
r1
,
r2
expr1
=
x
==
5
expr2
=
1
r1
=
expr1
and
expr2
r2
=
(
x
==
5
)
and
1
return
r1
,
r2
tests/run/cmethod_inline_T474.pyx
View file @
d7db2112
...
...
@@ -10,8 +10,9 @@ cdef class TestInlineMethod(object):
0
"""
@
cython
.
test_assert_path_exists
(
"//AttributeNode[@entry.is_final_cmethod=True]"
)
@
cython
.
test_assert_path_exists
(
"//AttributeNode[@entry.is_inline_cmethod=True]"
)
@
cython
.
test_assert_path_exists
(
"//AttributeNode[@entry.is_inline_cmethod=True]"
,
"//AttributeNode[@entry.is_final_cmethod=True]"
)
def
test_cdef_method
(
self
):
return
self
.
cdef
_inline_method
()
...
...
@@ -23,7 +24,8 @@ cdef class Subtyping(TestInlineMethod):
0
"""
@
cython
.
test_assert_path_exists
(
"//AttributeNode[@entry.is_final_cmethod=True]"
)
@
cython
.
test_assert_path_exists
(
"//AttributeNode[@entry.is_inline_cmethod=True]"
)
@
cython
.
test_assert_path_exists
(
"//AttributeNode[@entry.is_inline_cmethod=True]"
,
"//AttributeNode[@entry.is_final_cmethod=True]"
)
def
test_cdef_subtyping
(
self
):
return
self
.
cdef
_inline_method
()
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