equal
deleted
inserted
replaced
207 if not os.path.basename(options.with_hg) == 'hg': |
207 if not os.path.basename(options.with_hg) == 'hg': |
208 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') |
209 if options.local: |
209 if options.local: |
210 testdir = os.path.dirname(os.path.realpath(sys.argv[0])) |
210 testdir = os.path.dirname(os.path.realpath(sys.argv[0])) |
211 hgbin = os.path.join(os.path.dirname(testdir), 'hg') |
211 hgbin = os.path.join(os.path.dirname(testdir), 'hg') |
212 if not os.access(hgbin, os.X_OK): |
212 if os.name != 'nt' and not os.access(hgbin, os.X_OK): |
213 parser.error('--local specified, but %r not found or not executable' |
213 parser.error('--local specified, but %r not found or not executable' |
214 % hgbin) |
214 % hgbin) |
215 options.with_hg = hgbin |
215 options.with_hg = hgbin |
216 |
216 |
217 options.anycoverage = options.cover or options.annotate or options.htmlcov |
217 options.anycoverage = options.cover or options.annotate or options.htmlcov |