diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -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')