Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
08b98bf8
Commit
08b98bf8
authored
Sep 16, 2003
by
Raymond Hettinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Minor wording change
* Reference the doctest.DocTestSuite() conversion tool.
parent
0afbc813
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Doc/lib/libunittest.tex
Doc/lib/libunittest.tex
+8
-2
No files found.
Doc/lib/libunittest.tex
View file @
08b98bf8
...
...
@@ -91,7 +91,7 @@ class.
\end{seealso}
\subsection
{
Minimal
example
\label
{
minimal-example
}}
\subsection
{
Basic
example
\label
{
minimal-example
}}
The
\module
{
unittest
}
module provides a rich set of tools for
constructing and running tests. This section demonstrates that a
...
...
@@ -387,7 +387,7 @@ alltests = unittest.TestSuite((suite1, suite2))
\end{verbatim}
You can place the definitions of test cases and test suites in the
same modules as the code they are to test (
e.g.
\
\file
{
widget.py
}
),
same modules as the code they are to test (
such as
\file
{
widget.py
}
),
but there are several advantages to placing the test code in a
separate module, such as
\file
{
widgettests.py
}
:
...
...
@@ -516,6 +516,12 @@ if __name__ == '__main__':
\end{verbatim}
\end{funcdesc}
In some cases, the existing tests may have be written using the
\module
{
doctest
}
module. If so, that module provides a
\class
{
DocTestSuite
}
class that can automatically build
\class
{
unittest.TestSuite
}
instances from the existing test code.
\versionadded
{
2.3
}
\subsection
{
TestCase Objects
\label
{
testcase-objects
}}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment