tests: update test-patchbomb to pass our import checker
authorAugie Fackler <raf@durin42.com>
Tue, 22 Aug 2017 16:59:06 -0400
changeset 33983 99e3227c83b5
parent 33982 6d9e7145d8d9
child 33984 a37417e30a1f
tests: update test-patchbomb to pass our import checker
tests/test-patchbomb.t
--- a/tests/test-patchbomb.t	Mon Aug 28 17:40:03 2017 -0400
+++ b/tests/test-patchbomb.t	Tue Aug 22 16:59:06 2017 -0400
@@ -9,18 +9,19 @@
 --===+[0-9]+=+$ -> --===*= (glob)
 
   $ cat > prune-blank-after-boundary.py <<EOF
+  > from __future__ import absolute_import, print_function
   > import sys
   > skipblank = False
   > trim = lambda x: x.strip(' \r\n')
   > for l in sys.stdin:
   >     if trim(l).endswith('=--') or trim(l).endswith('=='):
   >         skipblank = True
-  >         print l,
+  >         print(l, end='')
   >         continue
   >     if not trim(l) and skipblank:
   >         continue
   >     skipblank = False
-  >     print l,
+  >     print(l, end='')
   > EOF
   $ FILTERBOUNDARY="$PYTHON `pwd`/prune-blank-after-boundary.py"
   $ echo "[format]" >> $HGRCPATH