comparison tests/run-tests.py @ 33567:d9677e2ed16a

run-tests: warn if --color=always and no pygments installed Differential Revision: https://phab.mercurial-scm.org/D117
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 17 Jul 2017 16:27:13 -0700
parents 97070cbf0813
children a2c35146596b
comparison
equal deleted inserted replaced
33566:97070cbf0813 33567:d9677e2ed16a
411 if options.chg and options.with_hg: 411 if options.chg and options.with_hg:
412 # chg shares installation location with hg 412 # chg shares installation location with hg
413 parser.error('--chg does not work when --with-hg is specified ' 413 parser.error('--chg does not work when --with-hg is specified '
414 '(use --with-chg instead)') 414 '(use --with-chg instead)')
415 415
416 if options.color == 'always' and not pygmentspresent:
417 sys.stderr.write('warning: --color=always ignored because '
418 'pygments is not installed\n')
419
416 global useipv6 420 global useipv6
417 if options.ipv6: 421 if options.ipv6:
418 useipv6 = checksocketfamily('AF_INET6') 422 useipv6 = checksocketfamily('AF_INET6')
419 else: 423 else:
420 # only use IPv6 if IPv4 is unavailable and IPv6 is available 424 # only use IPv6 if IPv4 is unavailable and IPv6 is available