# HG changeset patch # User Yuya Nishihara # Date 2017-08-24 13:20:02 # Node ID 7cab956794e442c54e7c12c642c794598a21d102 # Parent f5d4bb8e944d7fe1c2b483cf491e3945b87089de run-tests: pass unicode to Pygments This is required on Python 3, and is more correct on Python 2 because Pygments is a unicode library. diff --git a/tests/run-tests.py b/tests/run-tests.py --- a/tests/run-tests.py +++ b/tests/run-tests.py @@ -615,7 +615,8 @@ def highlightdiff(line, color): if not color: return line assert pygmentspresent - return pygments.highlight(line, difflexer, terminal256formatter) + return pygments.highlight(line.decode('latin1'), difflexer, + terminal256formatter).encode('latin1') def highlightmsg(msg, color): if not color: