juju/testing — pull request #18 by gabriel-samfira (2014-07-03 18:28:42+00:00)
Title: maybe clearenv on windows

Windows requires a set of environment variables to function properly. This PR adds a whitelist of default environment variables that will get saved, and then preserved on Windows so that tests will work properly.

Without proper environment variables, standard packages such as "os" will sometimes fail, leading to packages failing because no temporary directory/file could be created.

ex on windows:
```Go
package main

import (
"os"
"fmt"
)

func main() {
fmt.Printf("Tempdir: %s", os.TempDir())
os.Clearenv()
fmt.Printf("Tempdir after Clearenv(): %s", os.TempDir())
}
```