Temporarily set the environment variable envvar to the value of value.
test.support.os_helper/EnvironmentVarGuard.set
EnvironmentVarGuard.set