obj_fixtures.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:deb-oslo.versionedobjects 作者: openstack 项目源码 文件源码
def setUp(self):
        super(WarningsFixture, self).setUp()
        # NOTE(sdague): Make deprecation warnings only happen once. Otherwise
        # this gets kind of crazy given the way that upstream python libs use
        # this.
        warnings.simplefilter("once", DeprecationWarning)
        warnings.filterwarnings('ignore',
                                message='With-statements now directly support'
                                        ' multiple context managers')

        self.addCleanup(warnings.resetwarnings)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号