Patchwork tests: update test-bundle2-pushback to pass the import checker

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

Comments

Augie Fackler - Aug. 25, 2017, 3:28 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503428676 14400
#      Tue Aug 22 15:04:36 2017 -0400
# Node ID c9ae2f7cc20684a9340322dd949302bcf76fd70d
# Parent  0d21f0d60eb5b398cf622081f631cff647f1e6b7
tests: update test-bundle2-pushback to pass the import checker

Patch

diff --git a/tests/test-bundle2-pushback.t b/tests/test-bundle2-pushback.t
--- a/tests/test-bundle2-pushback.t
+++ b/tests/test-bundle2-pushback.t
@@ -3,7 +3,8 @@ 
   > Current bundle2 implementation doesn't provide a way to generate those
   > parts, so they must be created by extensions.
   > """
-  > from mercurial import bundle2, pushkey, exchange, util
+  > from __future__ import absolute_import
+  > from mercurial import bundle2, exchange, pushkey, util
   > def _newhandlechangegroup(op, inpart):
   >     """This function wraps the changegroup part handler for getbundle.
   >     It issues an additional pushkey part to send a new