Patchwork tests: update test-annotate to pass our module import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 25, 2017, 3:28 p.m.
Message ID <3de9e0de7e638f8be9c9.1503674915@imladris.local>
Download mbox | patch
Permalink /patch/23336/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 25, 2017, 3:28 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503428290 14400
#      Tue Aug 22 14:58:10 2017 -0400
# Node ID 3de9e0de7e638f8be9c990ed440a14cdadd4493e
# Parent  e6d4215669062a7e49d736d46aa9fbc6fe2f51b6
tests: update test-annotate to pass our module import checker
Yuya Nishihara - Aug. 28, 2017, 2:29 p.m.
On Fri, 25 Aug 2017 11:28:35 -0400, Augie Fackler wrote:
> # HG changeset patch
> # User Augie Fackler <raf@durin42.com>
> # Date 1503428290 14400
> #      Tue Aug 22 14:58:10 2017 -0400
> # Node ID 3de9e0de7e638f8be9c990ed440a14cdadd4493e
> # Parent  e6d4215669062a7e49d736d46aa9fbc6fe2f51b6
> tests: update test-annotate to pass our module import checker

Queued this and the other 9 patches, thanks.

Patch

diff --git a/tests/test-annotate.t b/tests/test-annotate.t
--- a/tests/test-annotate.t
+++ b/tests/test-annotate.t
@@ -400,7 +400,8 @@  and (2) the extension to allow filelog m
 and its ancestor by overriding "repo._filecommit".
 
   $ cat > ../legacyrepo.py <<EOF
-  > from mercurial import node, error
+  > from __future__ import absolute_import
+  > from mercurial import error, node
   > def reposetup(ui, repo):
   >     class legacyrepo(repo.__class__):
   >         def _filecommit(self, fctx, manifest1, manifest2,