tests/run-tests.py
branchstable
changeset 722 85da4926cf39
parent 721 1dbc96b10ebd
child 724 211fa4b9803d
equal deleted inserted replaced
721:1dbc96b10ebd 722:85da4926cf39
   142         defaults[option] = int(os.environ.get(*default))
   142         defaults[option] = int(os.environ.get(*default))
   143     parser.set_defaults(**defaults)
   143     parser.set_defaults(**defaults)
   144     (options, args) = parser.parse_args()
   144     (options, args) = parser.parse_args()
   145 
   145 
   146     # jython is always pure
   146     # jython is always pure
   147     if 'java' in sys.platform:
   147     if 'java' in sys.platform or '__pypy__' in sys.modules:
   148         options.pure = True
   148         options.pure = True
   149 
   149 
   150     if options.with_hg:
   150     if options.with_hg:
   151         if not (os.path.isfile(options.with_hg) and
   151         if not (os.path.isfile(options.with_hg) and
   152                 os.access(options.with_hg, os.X_OK)):
   152                 os.access(options.with_hg, os.X_OK)):