File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ \section{\module{unittest} ---
9191\end {seealso }
9292
9393
94- \subsection {Minimal example \label {minimal-example } }
94+ \subsection {Basic example \label {minimal-example } }
9595
9696The \module {unittest} module provides a rich set of tools for
9797constructing and running tests. This section demonstrates that a
@@ -387,7 +387,7 @@ \subsection{Organizing test code
387387\end {verbatim }
388388
389389You can place the definitions of test cases and test suites in the
390- same modules as the code they are to test (e.g. \ \file {widget.py}),
390+ same modules as the code they are to test (such as \file {widget.py}),
391391but there are several advantages to placing the test code in a
392392separate module, such as \file {widgettests.py}:
393393
@@ -516,6 +516,12 @@ \subsection{Classes and functions
516516\end {verbatim }
517517\end {funcdesc }
518518
519+ In some cases, the existing tests may have be written using the
520+ \module {doctest} module. If so, that module provides a
521+ \class {DocTestSuite} class that can automatically build
522+ \class {unittest.TestSuite} instances from the existing test code.
523+ \versionadded {2.3}
524+
519525
520526\subsection {TestCase Objects
521527 \label {testcase-objects } }
You can’t perform that action at this time.
0 commit comments