[PATCH] tests: update test-bundle2-pushback to pass the import checker

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


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

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


More information about the Mercurial-devel mailing list