--- a/tests/readlink.py Fri May 06 01:15:07 2016 +0000
+++ b/tests/readlink.py Wed May 11 01:56:59 2016 +0000
@@ -1,13 +1,15 @@
#!/usr/bin/env python
+from __future__ import print_function
+
import errno, os, sys
for f in sys.argv[1:]:
try:
- print f, '->', os.readlink(f)
+ print(f, '->', os.readlink(f))
except OSError as err:
if err.errno != errno.EINVAL:
raise
- print f, 'not a symlink'
+ print(f, '->', f, 'not a symlink')
sys.exit(0)
--- a/tests/test-check-py3-compat.t Fri May 06 01:15:07 2016 +0000
+++ b/tests/test-check-py3-compat.t Wed May 11 01:56:59 2016 +0000
@@ -28,7 +28,6 @@
tests/heredoctest.py requires print_function
tests/md5sum.py not using absolute_import
tests/readlink.py not using absolute_import
- tests/readlink.py requires print_function
tests/run-tests.py not using absolute_import
tests/svn-safe-append.py not using absolute_import
tests/test-atomictempfile.py not using absolute_import
@@ -161,6 +160,5 @@
mercurial/win*.py: error importing module: <ImportError> No module named 'msvcrt' (line *) (glob)
mercurial/windows.py: error importing module: <ImportError> No module named '_winreg' (line *) (glob)
mercurial/wireproto.py: error importing module: <SyntaxError> invalid syntax (bundle*.py, line *) (line *) (glob)
- tests/readlink.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
#endif