Commit d9412be3 authored by Stefan Behnel's avatar Stefan Behnel

test for ticket #536

parent d59f781c
...@@ -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
......
__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[:]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment