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. 2to3 can translate Python 2.x source code into valid Python 3.x code.
The list of modules described in this chapter is:
typing
— Support for type hints pydoc
— Documentation generator and online help systemdoctest
— Test interactive Python examples unittest
— Unit testing framework unittest.mock
— mock object library unittest.mock
— getting startedtest
— Regression tests package for Python test.support
— Utilities for the Python test suitetest.support.script_helper
— Utilities for the Python execution testsSee also the Python development mode: the -X
dev
option and PYTHONDEVMODE
environment variable.
© 2001–2020 Python Software Foundation
Licensed under the PSF License.
https://docs.python.org/3.8/library/development.html