summaryrefslogtreecommitdiffstats
path: root/Doc/lib
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-08-14 03:42:13 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-08-14 03:42:13 (GMT)
commit5153266d139aa3ade49955f6851caa4846505076 (patch)
tree9153c5edfd1583a4846ad46ea4eab4aaf6853d36 /Doc/lib
parent7b97e8a9c2b6b5fc2aab900ac8c568a89df93e59 (diff)
downloadcpython-5153266d139aa3ade49955f6851caa4846505076.zip
cpython-5153266d139aa3ade49955f6851caa4846505076.tar.gz
cpython-5153266d139aa3ade49955f6851caa4846505076.tar.bz2
Clarify the docs for TransientResource.
Diffstat (limited to 'Doc/lib')
-rw-r--r--Doc/lib/libtest.tex9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/lib/libtest.tex b/Doc/lib/libtest.tex
index d258089..5e185fa 100644
--- a/Doc/lib/libtest.tex
+++ b/Doc/lib/libtest.tex
@@ -292,10 +292,11 @@ This will run all tests defined in the named module.
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}