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
a6117482
Commit
a6117482
authored
Oct 04, 2011
by
Vitja Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add tests for ticket #674
parent
bbc4c9e2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
0 deletions
+23
-0
tests/bugs.txt
tests/bugs.txt
+1
-0
tests/run/default_args_T674.py
tests/run/default_args_T674.py
+22
-0
No files found.
tests/bugs.txt
View file @
a6117482
...
@@ -18,6 +18,7 @@ temp_sideeffects_T654
...
@@ -18,6 +18,7 @@ temp_sideeffects_T654
class_scope_T671
class_scope_T671
slice2_T636
slice2_T636
builtin_subtype_methods_T653
builtin_subtype_methods_T653
default_args_T674
# CPython regression tests that don't current work:
# CPython regression tests that don't current work:
pyregr.test_threadsignals
pyregr.test_threadsignals
...
...
tests/run/default_args_T674.py
0 → 100644
View file @
a6117482
# mode: run
# ticket: 674
def
test_inner
(
a
):
"""
>>> a = test_inner(1)
>>> b = test_inner(2)
>>> a()
1
>>> b()
2
"""
def
inner
(
b
=
a
):
return
b
return
inner
def
test_lambda
(
n
):
"""
>>> [f() for f in test_lambda(3)]
[0, 1, 2]
"""
return
[
lambda
v
=
i
:
v
for
i
in
range
(
n
)]
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