[PATCH 04 of 10] tests: update test-share to pass our import checker

Augie Fackler raf at durin42.com
Mon Aug 28 11:27:32 EDT 2017


# HG changeset patch
# User Augie Fackler <raf at durin42.com>
# Date 1503435561 14400
#      Tue Aug 22 16:59:21 2017 -0400
# Node ID 10362303381bb4e3ed5118ba2ae3055604432665
# Parent  4c700816d9153f10c1818a5e4b9125f9f0c83223
tests: update test-share to pass our import checker

diff --git a/tests/test-share.t b/tests/test-share.t
--- a/tests/test-share.t
+++ b/tests/test-share.t
@@ -326,7 +326,12 @@ verify that bookmarks are not written on
 
   $ cat > failpullbookmarks.py << EOF
   > """A small extension that makes bookmark pulls fail, for testing"""
-  > from mercurial import extensions, exchange, error
+  > from __future__ import absolute_import
+  > from mercurial import (
+  >   error,
+  >   exchange,
+  >   extensions,
+  > )
   > def _pullbookmarks(orig, pullop):
   >     orig(pullop)
   >     raise error.HookAbort('forced failure by extension')


More information about the Mercurial-devel mailing list