diff options
author | Brett Cannon <bcannon@gmail.com> | 2007-01-04 00:23:49 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2007-01-04 00:23:49 (GMT) |
commit | 92d54d5e9c52da3eb71b4a5aa940d0f2b6aed254 (patch) | |
tree | 76c26b8b036b4b06c0140c01e24f1a5a334afdd4 /Misc | |
parent | 5399910eba1ef3580aebf49482b1367f14fa6c48 (diff) | |
download | cpython-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/NEWS | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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. |