开发工具¶
The modules described in this chapter help you write software. For example, the
pydoc
module takes a module and generates documentation based on the
module's contents. The doctest
and unittest
modules contains
frameworks for writing unit tests that automatically exercise code and verify
that the expected output is produced.
本章中描述的模块列表是:
typing
—— 对类型提示的支持pydoc
--- 文档生成器和在线帮助系统- Python 开发模式
doctest
--- 测试交互式的 Python 示例unittest
--- 单元测试框架unittest.mock
--- 模拟对象库unittest.mock
--- 上手指南test
--- Python 回归测试包test.support
--- 针对 Python 测试套件的工具test.support.socket_helper
--- 用于套接字测试的工具test.support.script_helper
--- 用于 Python 执行测试工具test.support.bytecode_helper
--- 用于测试正确字节码生成的支持工具test.support.threading_helper
--- 用于线程测试的工具test.support.os_helper
--- 用于操作系统测试的工具test.support.import_helper
--- 用于导入测试的工具test.support.warnings_helper
--- 用于警告测试的工具