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
7c2bc399
Commit
7c2bc399
authored
Dec 05, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
9e733bea
45e0104d
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 @
7c2bc399
...
@@ -20,6 +20,7 @@ slice2_T636
...
@@ -20,6 +20,7 @@ slice2_T636
builtin_subtype_methods_T653
builtin_subtype_methods_T653
dict_values_in_expression
dict_values_in_expression
builtin_float
builtin_float
inherited_final_method
# CPython regression tests that don't current work:
# CPython regression tests that don't current work:
pyregr.test_signal
pyregr.test_signal
...
...
tests/run/and.pyx
View file @
7c2bc399
...
@@ -59,3 +59,19 @@ def and2_literal():
...
@@ -59,3 +59,19 @@ def and2_literal():
5
5
"""
"""
return
True
and
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 @
7c2bc399
...
@@ -10,8 +10,9 @@ cdef class TestInlineMethod(object):
...
@@ -10,8 +10,9 @@ cdef class TestInlineMethod(object):
0
0
"""
"""
@
cython
.
test_assert_path_exists
(
"//AttributeNode[@entry.is_final_cmethod=True]"
)
@
cython
.
test_assert_path_exists
(
@
cython
.
test_assert_path_exists
(
"//AttributeNode[@entry.is_inline_cmethod=True]"
)
"//AttributeNode[@entry.is_inline_cmethod=True]"
,
"//AttributeNode[@entry.is_final_cmethod=True]"
)
def
test_cdef_method
(
self
):
def
test_cdef_method
(
self
):
return
self
.
cdef
_inline_method
()
return
self
.
cdef
_inline_method
()
...
@@ -23,7 +24,8 @@ cdef class Subtyping(TestInlineMethod):
...
@@ -23,7 +24,8 @@ cdef class Subtyping(TestInlineMethod):
0
0
"""
"""
@
cython
.
test_assert_path_exists
(
"//AttributeNode[@entry.is_final_cmethod=True]"
)
@
cython
.
test_assert_path_exists
(
@
cython
.
test_assert_path_exists
(
"//AttributeNode[@entry.is_inline_cmethod=True]"
)
"//AttributeNode[@entry.is_inline_cmethod=True]"
,
"//AttributeNode[@entry.is_final_cmethod=True]"
)
def
test_cdef_subtyping
(
self
):
def
test_cdef_subtyping
(
self
):
return
self
.
cdef
_inline_method
()
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