diff --git a/tests/seq.py b/tests/seq.py --- a/tests/seq.py +++ b/tests/seq.py @@ -7,7 +7,7 @@ # seq START STOP [START, STOP] stepping by 1 # seq START STEP STOP [START, STOP] stepping by STEP -from __future__ import absolute_import +from __future__ import absolute_import, print_function import sys start = 1 @@ -21,4 +21,4 @@ if len(sys.argv) > 3: stop = int(sys.argv[-1]) + 1 for i in xrange(start, stop, step): - print i + print(i) diff --git a/tests/test-check-py3-compat.t b/tests/test-check-py3-compat.t --- a/tests/test-check-py3-compat.t +++ b/tests/test-check-py3-compat.t @@ -54,7 +54,6 @@ tests/readlink.py requires print_function tests/revlog-formatv0.py not using absolute_import tests/run-tests.py not using absolute_import - tests/seq.py requires print_function tests/silenttestrunner.py not using absolute_import tests/silenttestrunner.py requires print_function tests/sitecustomize.py not using absolute_import @@ -265,7 +264,6 @@ tests/generate-working-copy-states.py: invalid syntax: Missing parentheses in call to 'print' (, line *) (glob) tests/get-with-headers.py: invalid syntax: Missing parentheses in call to 'print' (, line *) (glob) tests/readlink.py: invalid syntax: invalid syntax (, line *) (glob) - tests/seq.py: invalid syntax: Missing parentheses in call to 'print' (, line *) (glob) tests/silenttestrunner.py: invalid syntax: Missing parentheses in call to 'print' (, line *) (glob) tests/test-ancestor.py: invalid syntax: Missing parentheses in call to 'print' (, line *) (glob) tests/test-batching.py: invalid syntax: invalid syntax (, line *) (glob)