changeset 43194:138ac8cbce60

hghave: use a native string to invoke the `black` command Windows can't create a process based on bytes. Apparently only the output test in `matchoutput` wants bytes. Differential Revision: https://phab.mercurial-scm.org/D7080
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 12 Oct 2019 22:21:51 -0400
parents 2d1f9880af1b
children 86b26f20146d
files tests/hghave.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/hghave.py	Sat Oct 12 22:22:17 2019 -0400
+++ b/tests/hghave.py	Sat Oct 12 22:21:51 2019 -0400
@@ -984,8 +984,8 @@
 @check('grey', 'grey, the fork of the black formatter for python')
 def has_black():
     # use that to actual black as soon as possible
-    # blackcmd = b'black --version'
-    blackcmd = b'python3 $RUNTESTDIR/../contrib/grey.py --version'
+    # blackcmd = 'black --version'
+    blackcmd = 'python3 $RUNTESTDIR/../contrib/grey.py --version'
     # version_regex = b'black, version \d'
     version_regex = b'grey.py, version \d'
     return matchoutput(blackcmd, version_regex)