Walter Dörwald <[email protected]> added the comment:
Hmm, EnvironmentVarGuard seems to be broken:
import os
from test import support
with support.EnvironmentVarGuard() as env:
env.unset("HOME")
env.set("HOME", "bar")
print(os.environ.get("HOME"))
I would have expected that to print the original HOME variable. I'm
going to open a new bug report for that.
----------
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue4951>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com