obj_fixtures.py 文件源码

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

项目:deb-oslo.versionedobjects 作者: openstack 项目源码 文件源码
def __init__(self, timeout, scaling=1):
        super(Timeout, self).__init__()
        try:
            self.test_timeout = int(timeout)
        except ValueError:
            # If timeout value is invalid do not set a timeout.
            self.test_timeout = 0
        if scaling >= 1:
            self.test_timeout *= scaling
        else:
            raise ValueError('scaling value must be >= 1')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号