# HG changeset patch # User Augie Fackler # Date 2017-08-22 20:59:06 # Node ID 99e3227c83b53ac0bc76e453602deab6640f9999 # Parent 6d9e7145d8d996390b2bb6c9c822400b94fa9654 tests: update test-patchbomb to pass our import checker diff --git a/tests/test-patchbomb.t b/tests/test-patchbomb.t --- a/tests/test-patchbomb.t +++ b/tests/test-patchbomb.t @@ -9,18 +9,19 @@ Mercurial-patchbomb/.* -> Mercurial-patc --===+[0-9]+=+$ -> --===*= (glob) $ cat > prune-blank-after-boundary.py < 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