summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-12-13 23:09:53 (GMT)
committerBrett Cannon <bcannon@gmail.com>2006-12-13 23:09:53 (GMT)
commit6d9520c4f0e01ff87ff3d74166f508df0a215261 (patch)
tree4024486982a7efc6717ead6db1e0e44105bb27b6 /Misc
parentc745df8519b3dce95bb3ce7587c4c311f8184290 (diff)
downloadcpython-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/NEWS4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS b/Misc/NEWS
index 667ccaf..4d9c899 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -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.