[Python-checkins] r57000 - python/trunk/Doc/lib/libtest.tex
brett.cannon
python-checkins at python.org
Tue Aug 14 05:42:13 CEST 2007
Author: brett.cannon
Date: Tue Aug 14 05:42:13 2007
New Revision: 57000
Modified:
python/trunk/Doc/lib/libtest.tex
Log:
Clarify the docs for TransientResource.
Modified: python/trunk/Doc/lib/libtest.tex
==============================================================================
--- python/trunk/Doc/lib/libtest.tex (original)
+++ python/trunk/Doc/lib/libtest.tex Tue Aug 14 05:42:13 2007
@@ -292,10 +292,11 @@
The \module{test.test_support} module defines the following classes:
\begin{classdesc}{TransientResource}{exc\optional{, **kwargs}}
-Create a context manager that raises \class{ResourceDenied} if the specified
-exception type is raised. Any keyword arguments are treated as name/value
-pairs to be compared against any exception raised with the \code{with}
-statement. Only if all pairs match is \class{ResourceDenied} raised.
+Instances are a context manager that raises \class{ResourceDenied} if the
+specified exception type is raised. Any keyword arguments are treated as
+attribute/value pairs to be compared against any exception raised within the
+\code{with} statement. Only if all pairs match properly against attributes on
+the exception is \class{ResourceDenied} raised.
\versionadded{2.6}
\end{classdesc}
More information about the Python-checkins
mailing list