From patchwork Tue Jul 18 00:06:20 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D117: run-tests: warn if --color=always and no pygments installed From: phabricator X-Patchwork-Id: 22463 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Tue, 18 Jul 2017 00:06:20 +0000 martinvonz created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REPOSITORY rHG Mercurial REVISION DETAIL https://phab.mercurial-scm.org/D117 AFFECTED FILES tests/run-tests.py CHANGE DETAILS EMAIL PREFERENCES https://phab.mercurial-scm.org/settings/panel/emailpreferences/ To: martinvonz, #hg-reviewers Cc: mercurial-devel diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -421,6 +421,9 @@ options.color = False else: # 'always', for testing purposes options.color = pygmentspresent + if not pygmentspresent: + sys.stderr.write('warning: --color=always ignored because' + 'pygments is not installed\n') global useipv6 if options.ipv6: