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

Augie Fackler raf at durin42.com
Mon Aug 28 11:27:34 EDT 2017


# HG changeset patch
# User Augie Fackler <raf at 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

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
 
 


More information about the Mercurial-devel mailing list