tests/run-tests.py
branchstable
changeset 1170 2fb2b92583e4
parent 1169 28f06763bfb2
child 1171 5af439678b99
equal deleted inserted replaced
1169:28f06763bfb2 1170:2fb2b92583e4
   368         os.symlink(sys.executable, mypython)
   368         os.symlink(sys.executable, mypython)
   369     except AttributeError:
   369     except AttributeError:
   370         # windows fallback
   370         # windows fallback
   371         shutil.copyfile(sys.executable, mypython)
   371         shutil.copyfile(sys.executable, mypython)
   372         shutil.copymode(sys.executable, mypython)
   372         shutil.copymode(sys.executable, mypython)
       
   373     except OSError, err:
       
   374         # child processes may race, which is harmless
       
   375         if err.errno != errno.EEXIST:
       
   376             raise
   373 
   377 
   374 def installhg(options):
   378 def installhg(options):
   375     vlog("# Performing temporary installation of HG")
   379     vlog("# Performing temporary installation of HG")
   376     installerrs = os.path.join("tests", "install.err")
   380     installerrs = os.path.join("tests", "install.err")
   377     compiler = ''
   381     compiler = ''