[PATCH] tests: update test-annotate to pass our module import checker

Augie Fackler raf at durin42.com
Fri Aug 25 15:28:35 UTC 2017


# HG changeset patch
# User Augie Fackler <raf at 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

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,


More information about the Mercurial-devel mailing list