在哪里可以找到为验证 python 标准库中的函数而进行的测试? [英] Where can I find the tests made to verify the functions in the python standard library?

查看:81
本文介绍了在哪里可以找到为验证 python 标准库中的函数而进行的测试?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前在学校参加一个小组项目.我们正在使用python标准库,我们想知道它是否已经过python团队的测试.换句话说,是否有针对整个 python 标准库的任何文档或开源单元测试,如果有,我们可以在哪里阅读更多相关信息?

I am currently in a group project in school. We are using the python standard-library, and we are wondering if it has been tested by the python team. In other words, is there any documentation or open source unit tests for the entire python standard-library, and if so, where can we read more about this?

推荐答案

确实如此.它们位于 CPython Github 存储库的 Lib/test 目录中.

Indeed, it is. They are located in the Lib/test directory of the CPython Github repository.

它们带有前缀,例如,abc 模块被命名为 test_abc.py.

They are prefixed so that, for example, the abc module is named test_abc.py.

这篇关于在哪里可以找到为验证 python 标准库中的函数而进行的测试?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆