hghave: fix bytes/string issue on Python 3 stable
authorAugie Fackler <augie@google.com>
Mon, 04 Nov 2019 12:20:11 -0500
branchstable
changeset 43406 c3bca833cb92
parent 43405 7c9d42c1042d
child 43407 09234eeae206
hghave: fix bytes/string issue on Python 3
tests/hghave.py
--- a/tests/hghave.py	Mon Nov 04 07:56:53 2019 +0100
+++ b/tests/hghave.py	Mon Nov 04 12:20:11 2019 -0500
@@ -987,4 +987,4 @@
     version_regex = b'black, version ([0-9a-b.]+)'
     version = matchoutput(blackcmd, version_regex)
     sv = distutils.version.StrictVersion
-    return version and sv(version.group(1)) >= sv('19.10b0')
+    return version and sv(_strpath(version.group(1))) >= sv('19.10b0')