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
7033720f
Commit
7033720f
authored
Aug 14, 2007
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify the docs for TransientResource.
parent
499b137c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
Doc/lib/libtest.tex
Doc/lib/libtest.tex
+5
-4
No files found.
Doc/lib/libtest.tex
View file @
7033720f
...
...
@@ -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}
...
...
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