diff options
| author | Alex Brainman <alex.brainman@gmail.com> | 2014-08-07 10:22:10 +1000 |
|---|---|---|
| committer | Alex Brainman <alex.brainman@gmail.com> | 2014-08-07 10:22:10 +1000 |
| commit | a2d3669ef709c8a703534c113a95a283068ae43d (patch) | |
| tree | 3b192ed759dd99aff117a0bef714ddf9748fdc14 /src/pkg/path | |
| parent | b91aea55366d3f72c6f16a2cb5651b4e3aa5fb0c (diff) | |
| download | go-a2d3669ef709c8a703534c113a95a283068ae43d.tar.xz | |
path/filepath: do not restore original working directory twice in test
LGTM=dave
R=golang-codereviews, dave
CC=golang-codereviews
https://golang.org/cl/122910043
Diffstat (limited to 'src/pkg/path')
| -rw-r--r-- | src/pkg/path/filepath/path_test.go | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/pkg/path/filepath/path_test.go b/src/pkg/path/filepath/path_test.go index 17b53bdf92..8cdc763f1b 100644 --- a/src/pkg/path/filepath/path_test.go +++ b/src/pkg/path/filepath/path_test.go @@ -784,12 +784,6 @@ var absTests = []string{ } func TestAbs(t *testing.T) { - oldwd, err := os.Getwd() - if err != nil { - t.Fatal("Getwd failed: ", err) - } - defer os.Chdir(oldwd) - root, err := ioutil.TempDir("", "TestAbs") if err != nil { t.Fatal("TempDir failed: ", err) |
