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 /Misc | |
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 'Misc')
-rw-r--r-- | Misc/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -302,6 +302,10 @@ Extension Modules Tests ----- +- Added guard_warnings_filter to test.test_support. It returns a context + manager that protects the 'warnings' module's filter from being mutated + once the context has been exited. + - Added some tests for modulefinder. - Converted test_imp to use unittest. |