From patchwork Mon Aug 28 15:27:32 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [04,of,10] tests: update test-share to pass our import checker From: Augie Fackler X-Patchwork-Id: 23425 Message-Id: <10362303381bb4e3ed51.1503934052@augie-macbookpro2.roam.corp.google.com> To: mercurial-devel@mercurial-scm.org Date: Mon, 28 Aug 2017 11:27:32 -0400 # HG changeset patch # User Augie Fackler # 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')