summaryrefslogtreecommitdiffstats
path: root/Doc/lib/libunittest.tex
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-10-20 04:24:09 (GMT)
committerFred Drake <fdrake@acm.org>2001-10-20 04:24:09 (GMT)
commit0aa811c527372fbee0e20192bba3cf343a744e08 (patch)
treeab0d86073c96b664d6b9d87ea84cdb8cdb263755 /Doc/lib/libunittest.tex
parent64a5aaf05ca20bdbd72c30fa0cfdda2ae9a347d9 (diff)
downloadcpython-0aa811c527372fbee0e20192bba3cf343a744e08.zip
cpython-0aa811c527372fbee0e20192bba3cf343a744e08.tar.gz
cpython-0aa811c527372fbee0e20192bba3cf343a744e08.tar.bz2
Use the \note and \warning macros where appropriate.
Diffstat (limited to 'Doc/lib/libunittest.tex')
-rw-r--r--Doc/lib/libunittest.tex8
1 files changed, 4 insertions, 4 deletions
diff --git a/Doc/lib/libunittest.tex b/Doc/lib/libunittest.tex
index 0bc3b25..06d76af 100644
--- a/Doc/lib/libunittest.tex
+++ b/Doc/lib/libunittest.tex
@@ -345,9 +345,9 @@ testcase = unittest.FunctionTestCase(testSomething,
tearDown=deleteSomethingDB)
\end{verbatim}
-\strong{Note:} PyUnit supports the use of \exception{AssertionError}
+\note{PyUnit supports the use of \exception{AssertionError}
as an indicator of test failure, but does not recommend it. Future
-versions may treat \exception{AssertionError} differently.
+versions may treat \exception{AssertionError} differently.}
\subsection{Classes and functions
@@ -708,12 +708,12 @@ configurable properties.
\class{TestCase} and creates an instance of the class for each test
method defined for the class.
- \strong{Warning:} While using a hierarchy of
+ \warning{While using a hierarchy of
\class{Testcase}-derived classes can be convenient in sharing
fixtures and helper functions, defining test methods on base classes
that are not intended to be instantiated directly does not play well
with this method. Doing so, however, can be useful when the
- fixtures are different and defined in subclasses.
+ fixtures are different and defined in subclasses.}
\end{methoddesc}
\begin{methoddesc}[TestLoader]{loadTestsFromName}{name\optional{, module}}