diff options
| author | Brett Cannon <bcannon@gmail.com> | 2006-12-13 23:09:53 (GMT) |
|---|---|---|
| committer | Brett Cannon <bcannon@gmail.com> | 2006-12-13 23:09:53 (GMT) |
| commit | 6d9520c4f0e01ff87ff3d74166f508df0a215261 (patch) | |
| tree | 4024486982a7efc6717ead6db1e0e44105bb27b6 /Doc/lib | |
| parent | c745df8519b3dce95bb3ce7587c4c311f8184290 (diff) | |
| download | cpython-6d9520c4f0e01ff87ff3d74166f508df0a215261.zip cpython-6d9520c4f0e01ff87ff3d74166f508df0a215261.tar.gz cpython-6d9520c4f0e01ff87ff3d74166f508df0a215261.tar.bz2 | |
Add test.test_support.guard_warnings_filter . This function returns a context
manager that protects warnings.filter from being modified once the context is
exited.
Diffstat (limited to 'Doc/lib')
| -rw-r--r-- | Doc/lib/libtest.tex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/lib/libtest.tex b/Doc/lib/libtest.tex index 54a24b1..d13bfff 100644 --- a/Doc/lib/libtest.tex +++ b/Doc/lib/libtest.tex @@ -263,6 +263,10 @@ If no match is found \var{filename} is returned. This does not equal a failure since it could be the path to the file. \end{funcdesc} +\begin{funcdesc}{guard_warnings_filter}{} +Returns a context manager that guards the \module{warnings} module's +filter settings. + \begin{funcdesc}{run_unittest}{*classes} Execute \class{unittest.TestCase} subclasses passed to the function. The function scans the classes for methods starting with the prefix |
