Ignore:
Timestamp:
Mar 19, 2014, 11:31:01 PM (11 years ago)
Author:
dmik
Message:

python: Merge vendor 2.7.6 to trunk.

Location:
python/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • python/trunk

  • python/trunk/Lib/test/test_startfile.py

    r2 r391  
    1010import unittest
    1111from test import test_support
     12import os
     13from os import path
     14from time import sleep
    1215
    13 # use this form so that the test is skipped when startfile is not available:
    14 from os import startfile, path
     16startfile = test_support.get_attribute(os, 'startfile')
     17
    1518
    1619class TestCase(unittest.TestCase):
     
    2528        startfile(empty)
    2629        startfile(empty, "open")
     30        # Give the child process some time to exit before we finish.
     31        # Otherwise the cleanup code will not be able to delete the cwd,
     32        # because it is still in use.
     33        sleep(0.1)
    2734
    2835    def test_empty_u(self):
     
    3037        startfile(unicode(empty, "mbcs"))
    3138        startfile(unicode(empty, "mbcs"), "open")
     39        sleep(0.1)
    3240
    3341def test_main():
Note: See TracChangeset for help on using the changeset viewer.