changeset 33986:169c97d4e722

tests: update test-share to pass our import checker
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 16:59:21 -0400
parents 68bc85f46fe3
children ed88f90bb787
files tests/test-share.t
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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')