摘要: pytest 2.测试用例setup和teardown 之前我写的unittest的setup和teardown,还有setupClass和teardownClass(需要配合@classmethod装饰器一起使用),接下来就介绍pytest的类似于这类的固件。 (1.setup_function、 阅读全文
posted @ 2019-07-29 20:33 cloudolt 阅读(383) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/si-lei/p/10748612.html 1. python中如何插入C语言运行? (1)编写C语言代码: (2)将c语言编译为动态库: 使用命令:gcc cfun.c -fPIC -shared -o lib_cfun.so 其中-shared参 阅读全文
posted @ 2019-07-29 20:31 cloudolt 阅读(3360) 评论(0) 推荐(0) 编辑