mirror of
https://github.com/python/cpython
synced 2024-09-22 07:21:31 +00:00
Attempt to fix #15415 on Windows
This commit is contained in:
parent
015b4535c5
commit
2f253e8e62
|
@ -21,12 +21,12 @@ def test_nonexisting(self):
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue