Skip to content

Commit 2c0ae30

Browse files
committed
-
1 parent faab262 commit 2c0ae30

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

source_py3/test_python_toolbox/test_context_management/test_as_reentrant.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -149,31 +149,6 @@ def __exit__(self, exc_type, exc_value, exc_traceback):
149149
# `.__wrapped__.__enter__` saw a depth of 1, because the depth decrement
150150
# happens *after* `.__wrapped__.__enter__` is called:
151151
assert depth_log.get(block=False) == 1
152-
153-
# def test_decorator_manage_context():
154-
# class Meow(ContextManager):
155-
# n = 0
156-
157-
# @as_reentrant
158-
# def manage_context(self):
159-
# self.n += 1
160-
# try:
161-
# yield
162-
# finally:
163-
# self.n -= 1
164-
165-
166-
# meow = Meow()
167-
# assert meow.n == 0
168-
# with meow:
169-
# assert meow.n == 1
170-
# with meow:
171-
# assert meow.n == 1
172-
# with meow:
173-
# assert meow.n == 1
174-
# assert meow.n == 1
175-
# assert meow.n == 1
176-
# assert meow.n == 0
177152

178153

179154
def test_decorator_class():

0 commit comments

Comments
 (0)