tests: update test-patch to pass our import checker
authorAugie Fackler <raf@durin42.com>
Tue, 22 Aug 2017 16:59:02 -0400
changeset 33972 b1f75d8e887a
parent 33971 dcfa83652744
child 33973 a1cd6eae2ad3
tests: update test-patch to pass our import checker
tests/test-patch.t
--- a/tests/test-patch.t	Tue Aug 22 16:58:57 2017 -0400
+++ b/tests/test-patch.t	Tue Aug 22 16:59:02 2017 -0400
@@ -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