Patchwork D7080: hghave: use a native string to invoke the `black` command

login
register
mail settings
Submitter phabricator
Date Oct. 13, 2019, 6:11 a.m.
Message ID <eab75f6bdfa4230027beae1391ca2a32@localhost.localdomain>
Download mbox | patch
Permalink /patch/42285/
State Not Applicable
Headers show

Comments

phabricator - Oct. 13, 2019, 6:11 a.m.
Closed by commit rHG138ac8cbce60: hghave: use a native string to invoke the `black` command (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7080?vs=17122&id=17125

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7080/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7080

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

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