D3350: tests: fix up a couple of minor bytes inconsistencies in run-tests.py
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Mon Apr 16 19:22:40 EDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG700aaa19de63: tests: fix up a couple of minor bytes inconsistencies in run-tests.py (authored by durin42, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D3350?vs=8313&id=8345
REVISION DETAIL
https://phab.mercurial-scm.org/D3350
AFFECTED FILES
contrib/python3-whitelist
tests/run-tests.py
CHANGE DETAILS
diff --git a/tests/run-tests.py b/tests/run-tests.py
--- 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
diff --git a/contrib/python3-whitelist b/contrib/python3-whitelist
--- a/contrib/python3-whitelist
+++ b/contrib/python3-whitelist
@@ -393,6 +393,7 @@
test-revset-outgoing.t
test-rollback.t
test-run-tests.py
+test-run-tests.t
test-schemes.t
test-serve.t
test-setdiscovery.t
To: durin42, pulkit, #hg-reviewers, indygreg
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list