black: show required version in skip message
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 27 Jan 2021 14:58:24 +0100
changeset 46403 959d581bb625
parent 46402 6b0dac9f650a
child 46404 a390c7fcd286
black: show required version in skip message This will help people to configure their black Differential Revision: https://phab.mercurial-scm.org/D9888
tests/hghave.py
--- a/tests/hghave.py	Wed Jan 27 14:57:20 2021 +0100
+++ b/tests/hghave.py	Wed Jan 27 14:58:24 2021 +0100
@@ -1054,7 +1054,7 @@
     return matchoutput('emacs --version', b'GNU Emacs 2(4.4|4.5|5|6|7|8|9)')
 
 
-@check('black', 'the black formatter for python')
+@check('black', 'the black formatter for python (>= 20.8b1)')
 def has_black():
     blackcmd = 'black --version'
     version_regex = b'black, version ([0-9a-b.]+)'