[PATCH 10 of 10] tests: update test-patch to pass our import checker
Augie Fackler
raf at durin42.com
Mon Aug 28 10:56:01 EDT 2017
# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1503435542 14400
# Tue Aug 22 16:59:02 2017 -0400
# Node ID db3b60e3edf8b0bbebeda19ca4caa298e90c429f
# Parent e02a9d1bc10171bfc47d16a76f4a1677625bc3dd
tests: update test-patch to pass our import checker
diff --git a/tests/test-patch.t b/tests/test-patch.t
--- a/tests/test-patch.t
+++ b/tests/test-patch.t
@@ -1,8 +1,9 @@
$ cat > patchtool.py <<EOF
+ > from __future__ import absolute_import, print_function
> import sys
- > print 'Using custom patch'
+ > print('Using custom patch')
> if '--binary' in sys.argv:
- > print '--binary found !'
+ > print('--binary found !')
> EOF
$ echo "[ui]" >> $HGRCPATH
More information about the Mercurial-devel
mailing list