Commit 15c3cbad authored by Stefan Behnel's avatar Stefan Behnel

fix test case

parent 836a6789
...@@ -3,7 +3,7 @@ __doc__ = """ ...@@ -3,7 +3,7 @@ __doc__ = """
>>> inner_result >>> inner_result
['ENTER'] ['ENTER']
>>> result >>> result
EXIT [None, None, None] ['ENTER', 'EXIT (None, None, None)']
""" """
result = [] result = []
...@@ -12,7 +12,7 @@ class ContextManager(object): ...@@ -12,7 +12,7 @@ class ContextManager(object):
def __enter__(self): def __enter__(self):
result.append("ENTER") result.append("ENTER")
def __exit__(self, *values): def __exit__(self, *values):
result.append("EXIT [%s]" % values) result.append("EXIT %r" % (values,))
with ContextManager() as c: with ContextManager() as c:
inner_result = result[:] 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