Merge #15415 from 3.3 (again)
This commit is contained in:
commit
00dc61cd73
|
@ -21,12 +21,14 @@ class TestCase(unittest.TestCase):
|
||||||
self.assertRaises(OSError, startfile, "nonexisting.vbs")
|
self.assertRaises(OSError, startfile, "nonexisting.vbs")
|
||||||
|
|
||||||
def test_empty(self):
|
def test_empty(self):
|
||||||
# startfile is a little odd when it comes to handling absolute
|
# We need to make sure the child process starts in a directory
|
||||||
# paths, so we briefly switch to the main test directory
|
# we're not about to delete. If we're running under -j, that
|
||||||
# and use a relative path
|
# means the test harness provided directory isn't a safe option.
|
||||||
with support.change_cwd(support.TEST_HOME):
|
# See http://bugs.python.org/issue15526 for more details
|
||||||
empty = "empty.vbs"
|
with support.change_cwd(path.dirname(sys.executable)):
|
||||||
|
empty = path.join(path.dirname(__file__), "empty.vbs")
|
||||||
startfile(empty)
|
startfile(empty)
|
||||||
|
startfile(empty, "open")
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
support.run_unittest(TestCase)
|
support.run_unittest(TestCase)
|
||||||
|
|
Loading…
Reference in New Issue