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
ea3993e2
Commit
ea3993e2
authored
Nov 11, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
extended test case
parent
2721708d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
tests/run/cython3.pyx
tests/run/cython3.pyx
+7
-0
No files found.
tests/run/cython3.pyx
View file @
ea3993e2
...
@@ -57,6 +57,13 @@ def list_comp():
...
@@ -57,6 +57,13 @@ def list_comp():
assert
x
==
'abc'
# don't leak in Py3 code
assert
x
==
'abc'
# don't leak in Py3 code
return
result
return
result
def
list_comp_unknown_type
(
l
):
"""
>>> list_comp_unknown_type(range(5))
[0, 4, 8]
"""
return
[
x
*
2
for
x
in
l
if
x
%
2
==
0
]
def
set_comp
():
def
set_comp
():
"""
"""
>>> sorted(set_comp())
>>> sorted(set_comp())
...
...
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