# HG changeset patch # User Yuya Nishihara # Date 1518859215 -32400 # Node ID be5a6fe3643a1333d53c2e4f9f6a2f920a99db88 # Parent 08f061a48a8f5faa3262f902b5b8b3c2f48acf4f py3: make test-extdiff.t pass on Python 3 diff -r 08f061a48a8f -r be5a6fe3643a contrib/python3-whitelist --- a/contrib/python3-whitelist Sat Feb 17 18:15:37 2018 +0900 +++ b/contrib/python3-whitelist Sat Feb 17 18:20:15 2018 +0900 @@ -88,6 +88,7 @@ test-exchange-obsmarkers-case-D3.t test-exchange-obsmarkers-case-D4.t test-execute-bit.t +test-extdiff.t test-extra-filelog-entry.t test-filebranch.t test-flags.t diff -r 08f061a48a8f -r be5a6fe3643a hgext/extdiff.py --- a/hgext/extdiff.py Sat Feb 17 18:15:37 2018 +0900 +++ b/hgext/extdiff.py Sat Feb 17 18:20:15 2018 +0900 @@ -285,7 +285,7 @@ cmdline += ' $parent1 $child' cmdline = re.sub(regex, quote, cmdline) - ui.debug('running %r in %s\n' % (cmdline, tmproot)) + ui.debug('running %r in %s\n' % (pycompat.bytestr(cmdline), tmproot)) ui.system(cmdline, cwd=tmproot, blockedtag='extdiff') for copy_fn, working_fn, st in fnsandstat: diff -r 08f061a48a8f -r be5a6fe3643a tests/test-extdiff.t --- a/tests/test-extdiff.t Sat Feb 17 18:15:37 2018 +0900 +++ b/tests/test-extdiff.t Sat Feb 17 18:20:15 2018 +0900 @@ -424,7 +424,8 @@ Test handling of non-ASCII paths in generated docstrings (issue5301) - >>> open("u", "w").write("\xa5\xa5") + >>> with open("u", "wb") as f: + ... n = f.write(b"\xa5\xa5") $ U=`cat u` $ HGPLAIN=1 hg --config hgext.extdiff= --config extdiff.cmd.td=hi help -k xyzzy