Mercurial > hg > mercurial-source
diff tests/run-tests.py @ 38527:700aaa19de63
tests: fix up a couple of minor bytes inconsistencies in run-tests.py
Only in the automatic bisection code, so fortunately nothing major is
amiss. Fixes test-run-tests.t under Python 3.
Differential Revision: https://phab.mercurial-scm.org/D3350
author | Augie Fackler <augie@google.com> |
---|---|
date | Fri, 13 Apr 2018 21:53:07 -0400 (2018-04-14) |
parents | 4e6a6d0dccee |
children | 507bdc40bb17 |
line wrap: on
line diff
--- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -2215,10 +2215,11 @@ 'Failed to identify failure point for %s' % test) continue dat = m.groupdict() - verb = 'broken' if dat['goodbad'] == 'bad' else 'fixed' + verb = 'broken' if dat['goodbad'] == b'bad' else 'fixed' self.stream.writeln( '%s %s by %s (%s)' % ( - test, verb, dat['node'], dat['summary'])) + test, verb, dat['node'].decode('ascii'), + dat['summary'].decode('utf8', 'ignore'))) def printtimes(self, times): # iolock held by run