diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-07-29 05:19:29 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-07-29 05:19:29 (GMT) |
commit | 4bcb1ec539f2a45ccf2ed5d930a69f73938229cd (patch) | |
tree | 56ff53c944728b8f613145649b65fc154dad4c35 /Lib/test | |
parent | 7e6cd2999af4248a4c348675f55b81e51ce2c208 (diff) | |
parent | 2f253e8e626fa74e78cddfb1a79b8c1e7bbbab9c (diff) | |
download | cpython-4bcb1ec539f2a45ccf2ed5d930a69f73938229cd.zip cpython-4bcb1ec539f2a45ccf2ed5d930a69f73938229cd.tar.gz cpython-4bcb1ec539f2a45ccf2ed5d930a69f73938229cd.tar.bz2 |
Merge #15415 Windows buildbot change from 3.3
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_startfile.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_startfile.py b/Lib/test/test_startfile.py index 5a9c2de..68e35b3 100644 --- a/Lib/test/test_startfile.py +++ b/Lib/test/test_startfile.py @@ -21,12 +21,12 @@ class TestCase(unittest.TestCase): self.assertRaises(OSError, startfile, "nonexisting.vbs") def test_empty(self): - # Switch to an existing, but safe, working directory to let the - # cleanup code do its thing without permission errors. - with support.temp_cwd(path=path.dirname(sys.executable)): - empty = path.join(path.dirname(__file__), "empty.vbs") + # startfile is a little odd when it comes to handling absolute + # paths, so we briefly switch to the main test directory + # and use a relative path + with support.change_cwd(support.TEST_HOME): + empty = "empty.vbs" startfile(empty) - startfile(empty, "open") def test_main(): support.run_unittest(TestCase) |