changeset 33983:99e3227c83b5

tests: update test-patchbomb to pass our import checker
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 16:59:06 -0400
parents 6d9e7145d8d9
children a37417e30a1f
files tests/test-patchbomb.t
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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