# HG changeset patch # User Matt Harbison # Date 2018-10-18 01:54:49 # Node ID 633da7139e4aa87d9284544f605c08feb547bd64 # Parent 1524c305377fbf49a64655a1b109d1b3580affd7 py3: fix test-import-context.t diff --git a/tests/test-import-context.t b/tests/test-import-context.t --- a/tests/test-import-context.t +++ b/tests/test-import-context.t @@ -19,7 +19,10 @@ Test applying context diffs > EOF $ cat > cat.py < import sys - > sys.stdout.write(repr(open(sys.argv[1], 'rb').read()) + '\n') + > from mercurial import pycompat + > from mercurial.utils import stringutil + > pycompat.stdout.write(b'%s\n' + > % stringutil.pprint(open(sys.argv[1], 'rb').read())) > EOF Initialize the test repository