Patchwork [02,of,10] tests: update test-log-exthook to pass our import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 28, 2017, 2:55 p.m.
Message ID <87e153a77ff33905183c.1503932153@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/23413/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 28, 2017, 2:55 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503435493 14400
#      Tue Aug 22 16:58:13 2017 -0400
# Node ID 87e153a77ff33905183cd5491b753918d256c388
# Parent  8108120d81448c42f5727d74d692b5c922a402ad
tests: update test-log-exthook to pass our import checker

Patch

diff --git a/tests/test-log-exthook.t b/tests/test-log-exthook.t
--- a/tests/test-log-exthook.t
+++ b/tests/test-log-exthook.t
@@ -2,8 +2,12 @@  Test hg log changeset printer external h
 -------------------------------------------
 
   $ 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')