Commit 7033720f authored by Brett Cannon's avatar Brett Cannon

Clarify the docs for TransientResource.

parent 499b137c
......@@ -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}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment