# HG changeset patch # User Martin von Zweigbergk # Date 1500334033 25200 # Node ID d9677e2ed16ae1fda2e7a2568451935ec696f295 # Parent 97070cbf081380b396f542ec4d87641f990d92d8 run-tests: warn if --color=always and no pygments installed Differential Revision: https://phab.mercurial-scm.org/D117 diff -r 97070cbf0813 -r d9677e2ed16a tests/run-tests.py --- a/tests/run-tests.py Mon Jul 17 16:28:42 2017 -0700 +++ b/tests/run-tests.py Mon Jul 17 16:27:13 2017 -0700 @@ -413,6 +413,10 @@ parser.error('--chg does not work when --with-hg is specified ' '(use --with-chg instead)') + if options.color == 'always' and not pygmentspresent: + sys.stderr.write('warning: --color=always ignored because ' + 'pygments is not installed\n') + global useipv6 if options.ipv6: useipv6 = checksocketfamily('AF_INET6')