summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2007-01-04 00:23:49 (GMT)
committerBrett Cannon <bcannon@gmail.com>2007-01-04 00:23:49 (GMT)
commit92d54d5e9c52da3eb71b4a5aa940d0f2b6aed254 (patch)
tree76c26b8b036b4b06c0140c01e24f1a5a334afdd4 /Misc
parent5399910eba1ef3580aebf49482b1367f14fa6c48 (diff)
downloadcpython-92d54d5e9c52da3eb71b4a5aa940d0f2b6aed254.zip
cpython-92d54d5e9c52da3eb71b4a5aa940d0f2b6aed254.tar.gz
cpython-92d54d5e9c52da3eb71b4a5aa940d0f2b6aed254.tar.bz2
Add EnvironmentVarGuard to test.test_support. Provides a context manager to
temporarily set or unset environment variables.
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 ba882ef..4f310d8 100644
--- a/Misc/NEWS
+++ b/Misc/NEWS
@@ -323,6 +323,10 @@ Extension Modules
Tests
-----
+- Added test.test_support.EnvironmentVarGuard. It's a class that provides a
+ context manager so that one can temporarily set or unset environment
+ variables.
+
- 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.