changeset 33964:bfafd189edd9

tests: update test-log-exthook to pass our import checker
author Augie Fackler <raf@durin42.com>
date Tue, 22 Aug 2017 16:58:13 -0400
parents 9a0f33f497cd
children 251bd3fddd9b
files tests/test-log-exthook.t
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-log-exthook.t	Tue Aug 22 16:58:07 2017 -0400
+++ b/tests/test-log-exthook.t	Tue Aug 22 16:58:13 2017 -0400
@@ -2,8 +2,12 @@
 -------------------------------------------
 
   $ cat > $TESTTMP/logexthook.py <<EOF
-  > from mercurial import repair, commands
-  > from mercurial import cmdutil
+  > from __future__ import absolute_import
+  > from mercurial import (
+  >   cmdutil,
+  >   commands,
+  >   repair,
+  > )
   > def rot13description(self, ctx):
   >     summary = "summary".encode('rot13')
   >     description = ctx.description().strip().splitlines()[0].encode('rot13')