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

login
register
mail settings
Submitter Augie Fackler
Date Aug. 28, 2017, 3:27 p.m.
Message ID <a9c15eac8e7197834a33.1503934053@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/23426/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 28, 2017, 3:27 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503435566 14400
#      Tue Aug 22 16:59:26 2017 -0400
# Node ID a9c15eac8e7197834a33b8026dbea054510d2109
# Parent  10362303381bb4e3ed5118ba2ae3055604432665
tests: update test-strip to pass our import checker

Patch

diff --git a/tests/test-strip.t b/tests/test-strip.t
--- a/tests/test-strip.t
+++ b/tests/test-strip.t
@@ -961,7 +961,8 @@  Use delayedstrip to strip inside a trans
   2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   $ echo 3 >> I
   $ cat > $TESTTMP/delayedstrip.py <<EOF
-  > from mercurial import repair, commands
+  > from __future__ import absolute_import
+  > from mercurial import commands, repair
   > def reposetup(ui, repo):
   >     def getnodes(expr):
   >         return [repo.changelog.node(r) for r in repo.revs(expr)]