Mercurial > hg-stable
diff tests/test-relink.t @ 34006:afb33e73e515
tests: update test-relink to pass our import checker
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Tue, 22 Aug 2017 17:11:30 -0400 |
parents | 75be14993fda |
children | eb586ed5d8ce |
line wrap: on
line diff
--- a/tests/test-relink.t Tue Aug 22 16:59:26 2017 -0400 +++ b/tests/test-relink.t Tue Aug 22 17:11:30 2017 -0400 @@ -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