tests/run-tests.py
changeset 28037 54c896f8bb79
parent 28007 fb92927f9775
child 28055 92e8e3f20a6f
equal deleted inserted replaced
28036:b5069c2b6f62 28037:54c896f8bb79
   283     # jython is always pure
   283     # jython is always pure
   284     if 'java' in sys.platform or '__pypy__' in sys.modules:
   284     if 'java' in sys.platform or '__pypy__' in sys.modules:
   285         options.pure = True
   285         options.pure = True
   286 
   286 
   287     if options.with_hg:
   287     if options.with_hg:
   288         options.with_hg = os.path.expanduser(options.with_hg)
   288         options.with_hg = os.path.realpath(os.path.expanduser(options.with_hg))
   289         if not (os.path.isfile(options.with_hg) and
   289         if not (os.path.isfile(options.with_hg) and
   290                 os.access(options.with_hg, os.X_OK)):
   290                 os.access(options.with_hg, os.X_OK)):
   291             parser.error('--with-hg must specify an executable hg script')
   291             parser.error('--with-hg must specify an executable hg script')
   292         if not os.path.basename(options.with_hg) == 'hg':
   292         if not os.path.basename(options.with_hg) == 'hg':
   293             sys.stderr.write('warning: --with-hg should specify an hg script\n')
   293             sys.stderr.write('warning: --with-hg should specify an hg script\n')