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
Gwenaël Samain
cython
Commits
fb3ac076
Commit
fb3ac076
authored
Apr 02, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added disabled test case for type inference in generators
parent
21f87d6f
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/generator_type_inference.pyx
tests/run/generator_type_inference.pyx
+13
-0
No files found.
tests/bugs.txt
View file @
fb3ac076
...
@@ -18,6 +18,7 @@ genexpr_iterable_lookup_T600
...
@@ -18,6 +18,7 @@ genexpr_iterable_lookup_T600
for_from_pyvar_loop_T601
for_from_pyvar_loop_T601
decorators_T593
decorators_T593
temp_sideeffects_T654
temp_sideeffects_T654
generator_type_inference
# CPython regression tests that don't current work:
# CPython regression tests that don't current work:
pyregr.test_threadsignals
pyregr.test_threadsignals
...
...
tests/run/generator_type_inference.pyx
0 → 100644
View file @
fb3ac076
# mode: run
# tag: typeinference, generators
cimport
cython
def
test_type_inference
():
"""
>>> [ item for item in test_type_inference() ]
[(2.0, 'double'), (2.0, 'double'), (2.0, 'double')]
"""
x
=
1.0
for
i
in
range
(
3
):
yield
x
*
2.0
,
cython
.
typeof
(
x
)
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