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

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

Comments

Augie Fackler - Aug. 28, 2017, 3:27 p.m.
# HG changeset patch
# User Augie Fackler <raf@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

Patch

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')