[PATCH 3 of 3] py3: fix test-import-context.t
Matt Harbison
mharbison72 at gmail.com
Wed Oct 17 22:09:02 EDT 2018
# HG changeset patch
# User Matt Harbison <matt_harbison at yahoo.com>
# Date 1539827689 14400
# Wed Oct 17 21:54:49 2018 -0400
# Node ID b08be5625c0094a2fdd6cc00bec2a4dcdcc9ea75
# Parent 0f8e789ea9450bd401cadd53cdf1cb81ec688cb2
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 <<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
More information about the Mercurial-devel
mailing list