changeset 41136:633da7139e4a

py3: fix test-import-context.t
author Matt Harbison <matt_harbison@yahoo.com>
date Wed, 17 Oct 2018 21:54:49 -0400
parents 1524c305377f
children b1eb19301c94
files tests/test-import-context.t
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-import-context.t
+++ b/tests/test-import-context.t
@@ -19,7 +19,10 @@
   > EOF
   $ cat > cat.py <<EOF
   > 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