summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2011-04-19 18:12:47 (GMT)
committerRaymond Hettinger <python@rcn.com>2011-04-19 18:12:47 (GMT)
commit111474452db9ae6fec3373c646ebab01726e2b50 (patch)
tree3a46a68e0062596d2e220ac0a3b037694485fe0a /Lib
parentab694380466be70294aa8e5b99b10e9f0c48b3bf (diff)
parent58de6ee8711a079da0b555221ae739d6a69df2f7 (diff)
downloadcpython-111474452db9ae6fec3373c646ebab01726e2b50.zip
cpython-111474452db9ae6fec3373c646ebab01726e2b50.tar.gz
cpython-111474452db9ae6fec3373c646ebab01726e2b50.tar.bz2
merge
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_startfile.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_startfile.py b/Lib/test/test_startfile.py
index 7a003eb..dd505bf 100644
--- a/Lib/test/test_startfile.py
+++ b/Lib/test/test_startfile.py
@@ -11,6 +11,7 @@ import unittest
from test import support
import os
from os import path
+from time import sleep
startfile = support.get_attribute(os, 'startfile')
@@ -23,6 +24,10 @@ class TestCase(unittest.TestCase):
empty = path.join(path.dirname(__file__), "empty.vbs")
startfile(empty)
startfile(empty, "open")
+ # Give the child process some time to exit before we finish.
+ # Otherwise the cleanup code will not be able to delete the cwd,
+ # because it is still in use.
+ sleep(0.1)
def test_main():
support.run_unittest(TestCase)