Patchwork [10,of,10] tests: update test-patch to pass our import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 28, 2017, 2:56 p.m.
Message ID <db3b60e3edf8b0bbebed.1503932161@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/23420/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 28, 2017, 2:56 p.m.
# HG changeset patch
# User Augie Fackler <raf@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

Patch

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