Patchwork [06,of,10] tests: update test-relink to pass our import checker

login
register
mail settings
Submitter Augie Fackler
Date Aug. 28, 2017, 3:27 p.m.
Message ID <8f378e7db536977a5626.1503934054@augie-macbookpro2.roam.corp.google.com>
Download mbox | patch
Permalink /patch/23427/
State Accepted
Headers show

Comments

Augie Fackler - Aug. 28, 2017, 3:27 p.m.
# HG changeset patch
# User Augie Fackler <raf@durin42.com>
# Date 1503436290 14400
#      Tue Aug 22 17:11:30 2017 -0400
# Node ID 8f378e7db536977a5626db61b677f9d3171c82e6
# Parent  a9c15eac8e7197834a33b8026dbea054510d2109
tests: update test-relink to pass our import checker

Patch

diff --git a/tests/test-relink.t b/tests/test-relink.t
--- a/tests/test-relink.t
+++ b/tests/test-relink.t
@@ -8,13 +8,15 @@ 
   > }
 
   $ cat > arelinked.py <<EOF
-  > import sys, os
+  > from __future__ import absolute_import, print_function
+  > import os
+  > import sys
   > from mercurial import util
   > path1, path2 = sys.argv[1:3]
   > if util.samefile(path1, path2):
-  >     print '%s == %s' % (path1, path2)
+  >     print('%s == %s' % (path1, path2))
   > else:
-  >     print '%s != %s' % (path1, path2)
+  >     print('%s != %s' % (path1, path2))
   > EOF