def __getattr__(self, name):
"""Proxy all unknown attributes to the original method.
This is important for some of the decorators in the `unittest`
module, such as `unittest.skipIf`.
"""
return getattr(self.orig_method, name)
testing.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录