tests/run-tests.py
branchstable
changeset 1046 2890e1f3d8e4
parent 1045 0a2285b90e22
child 1059 1745fd2dd308
equal deleted inserted replaced
1045:0a2285b90e22 1046:2890e1f3d8e4
   198     # jython is always pure
   198     # jython is always pure
   199     if 'java' in sys.platform or '__pypy__' in sys.modules:
   199     if 'java' in sys.platform or '__pypy__' in sys.modules:
   200         options.pure = True
   200         options.pure = True
   201 
   201 
   202     if options.with_hg:
   202     if options.with_hg:
       
   203         options.with_hg = os.path.expanduser(options.with_hg)
   203         if not (os.path.isfile(options.with_hg) and
   204         if not (os.path.isfile(options.with_hg) and
   204                 os.access(options.with_hg, os.X_OK)):
   205                 os.access(options.with_hg, os.X_OK)):
   205             parser.error('--with-hg must specify an executable hg script')
   206             parser.error('--with-hg must specify an executable hg script')
   206         if not os.path.basename(options.with_hg) == 'hg':
   207         if not os.path.basename(options.with_hg) == 'hg':
   207             sys.stderr.write('warning: --with-hg should specify an hg script\n')
   208             sys.stderr.write('warning: --with-hg should specify an hg script\n')