mirror of
https://github.com/python/cpython.git
synced 2025-11-15 00:00:00 +00:00
Merge test_startfile fix from 3.1.
This commit is contained in:
commit
cc3f029380
2 changed files with 7 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ import unittest
|
||||||
from test import support
|
from test import support
|
||||||
import os
|
import os
|
||||||
from os import path
|
from os import path
|
||||||
|
from time import sleep
|
||||||
|
|
||||||
startfile = support.get_attribute(os, 'startfile')
|
startfile = support.get_attribute(os, 'startfile')
|
||||||
|
|
||||||
|
|
@ -23,6 +24,10 @@ class TestCase(unittest.TestCase):
|
||||||
empty = path.join(path.dirname(__file__), "empty.vbs")
|
empty = path.join(path.dirname(__file__), "empty.vbs")
|
||||||
startfile(empty)
|
startfile(empty)
|
||||||
startfile(empty, "open")
|
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():
|
def test_main():
|
||||||
support.run_unittest(TestCase)
|
support.run_unittest(TestCase)
|
||||||
|
|
|
||||||
|
|
@ -751,6 +751,8 @@ Tools/Demos
|
||||||
Tests
|
Tests
|
||||||
-----
|
-----
|
||||||
|
|
||||||
|
- Fix test_startfile to wait for child process to terminate before finishing.
|
||||||
|
|
||||||
- Issue #10822: Fix test_posix:test_getgroups failure under Solaris. Patch
|
- Issue #10822: Fix test_posix:test_getgroups failure under Solaris. Patch
|
||||||
by Ross Lagerwall.
|
by Ross Lagerwall.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue