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
d9412be3
Commit
d9412be3
authored
Jun 01, 2010
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test for ticket #536
parent
d59f781c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
tests/bugs.txt
tests/bugs.txt
+1
-0
tests/run/with_statement_module_level_T536.pyx
tests/run/with_statement_module_level_T536.pyx
+18
-0
No files found.
tests/bugs.txt
View file @
d9412be3
...
@@ -11,6 +11,7 @@ cascaded_list_unpacking_T467
...
@@ -11,6 +11,7 @@ cascaded_list_unpacking_T467
compile.cpp_operators
compile.cpp_operators
cpp_templated_ctypedef
cpp_templated_ctypedef
cpp_structs
cpp_structs
with_statement_module_level_T536
# CPython regression tests that don't current work:
# CPython regression tests that don't current work:
pyregr.test_threadsignals
pyregr.test_threadsignals
...
...
tests/run/with_statement_module_level_T536.pyx
0 → 100644
View file @
d9412be3
__doc__
=
"""
>>> inner_result
['ENTER']
>>> result
EXIT [None, None, None]
"""
result
=
[]
class
ContextManager
(
object
):
def
__enter__
(
self
):
result
.
append
(
"ENTER"
)
def
__exit__
(
self
,
*
values
):
result
.
append
(
"EXIT [%s]"
%
values
)
with
ContextManager
()
as
c
:
inner_result
=
result
[:]
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