Skip to content

Commit 81167d3

Browse files
committed
-
1 parent cd5dd25 commit 81167d3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

source_py3/test_python_toolbox/test_context_management/test_as_reentrant.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,16 +114,14 @@ def __exit__(self, exc_type, exc_value, exc_traceback):
114114

115115

116116
def test_order_of_depth_modification():
117-
''' '''
118-
119117
depth_log = queue_module.Queue()
120118

121119
class JohnnyContextManager(ContextManager):
122120
def __enter__(self):
123-
depth_log.put(self.depth)
121+
depth_log.put(johnny_reentrant_context_manager.depth)
124122
return self
125123
def __exit__(self, exc_type, exc_value, exc_traceback):
126-
depth_log.put(self.depth)
124+
depth_log.put(johnny_reentrant_context_manager.depth)
127125

128126
johnny_reentrant_context_manager = as_reentrant(JohnnyContextManager())
129127
assert johnny_reentrant_context_manager.depth == 0

0 commit comments

Comments
 (0)