test_npy_pkg_config.py 文件源码

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

项目:Alfred 作者: jkachhadia 项目源码 文件源码
def test_simple(self):
        with temppath('foo.ini') as path:
            with open(path,  'w') as f:
                f.write(simple)
            pkg = os.path.splitext(path)[0]
            out = read_config(pkg)

        self.assertTrue(out.cflags() == simple_d['cflags'])
        self.assertTrue(out.libs() == simple_d['libflags'])
        self.assertTrue(out.name == simple_d['name'])
        self.assertTrue(out.version == simple_d['version'])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号