test_verify.py 文件源码

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

项目:pact-python 作者: pact-foundation 项目源码 文件源码
def setUpClass(cls):
        # In Python 3 Click makes a call to locale to determine how the
        # terminal wants to handle unicode. Because we mock Popen to avoid
        # calling the real verifier, we need to get the actual result of
        # locale to provide it to Click during the test run.
        if os.name == 'nt':
            cls.locale = ''  # pragma: no cover
        else:
            cls.locale = Popen(
                ['locale', '-a'], stdout=PIPE, stderr=PIPE).communicate()[0]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号