def context(self, name):
self.active_contexts.append(name)
yield
self.assertEqual(self.active_contexts.pop(), name)
# Simulates the effect of an asynchronous library that uses its own
# StackContext internally and then returns control to the application.
stack_context_test.py 文件源码
python
阅读 21
收藏 0
点赞 0
评论 0
评论列表
文章目录