tests: update test-share to pass our import checker
authorAugie Fackler <raf@durin42.com>
Tue, 22 Aug 2017 16:59:21 -0400
changeset 33986 169c97d4e722
parent 33985 68bc85f46fe3
child 33987 ed88f90bb787
tests: update test-share to pass our import checker
tests/test-share.t
--- a/tests/test-share.t	Tue Aug 22 16:59:17 2017 -0400
+++ b/tests/test-share.t	Tue Aug 22 16:59:21 2017 -0400
@@ -326,7 +326,12 @@
 
   $ 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')