Patchwork D8334: tests: pass str to matchoutput()

login
register
mail settings
Submitter phabricator
Date April 1, 2020, 3:22 p.m.
Message ID <dd513061174a4d29c2fd26e09281f456@localhost.localdomain>
Download mbox | patch
Permalink /patch/45966/
State Not Applicable
Headers show

Comments

phabricator - April 1, 2020, 3:22 p.m.
Closed by commit rHG51ffb2a6c08a: tests: pass str to matchoutput() (authored by indygreg).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D8334?vs=20900&id=20939

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

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

AFFECTED FILES
  tests/hghave.py

CHANGE DETAILS




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

Patch

diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -335,7 +335,7 @@ 
 @check("rust", "Using the Rust extensions")
 def has_rust():
     """Check is the mercurial currently running is using some rust code"""
-    cmd = b'hg debuginstall --quiet 2>&1'
+    cmd = 'hg debuginstall --quiet 2>&1'
     match = br'checking module policy \(([^)]+)\)'
     policy = matchoutput(cmd, match)
     if not policy: