]> granicus.if.org Git - python/commit
Issue #5837: Certain sequences of calls to set() and unset() for
authorWalter Dörwald <walter@livinglogic.de>
Sat, 25 Apr 2009 12:15:07 +0000 (12:15 +0000)
committerWalter Dörwald <walter@livinglogic.de>
Sat, 25 Apr 2009 12:15:07 +0000 (12:15 +0000)
commita145317be9989bcb17f9631af7e2fc3d0e628669
tree372cc24098212e52da14b58282b889b126fa149b
parent162641a24cf2228246a9b8d5e0ca415a32444d5f
Issue #5837: Certain sequences of calls to set() and unset() for
support.EnvironmentVarGuard objects restored the environment variables
incorrectly on __exit__.

Fix this by recording the initial value of each environment variable on the
first access in set() or unset().
Lib/test/test_support.py
Misc/NEWS