# HG changeset patch # User Robert Stanca # Date 2016-04-03 21:17:11 # Node ID 6537e14301ef291190ecde83346c6f0c290a8e05 # Parent 83373fc2b287b3c36b8865f7a5bcfbece27d3bfd py3: use print_function in test-filelog.py 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 @@ -56,7 +56,6 @@ tests/test-demandimport.py not using absolute_import tests/test-demandimport.py requires print_function tests/test-doctest.py not using absolute_import - tests/test-filelog.py requires print_function tests/test-hg-parseurl.py not using absolute_import tests/test-hg-parseurl.py requires print_function tests/test-hgweb-auth.py not using absolute_import @@ -243,7 +242,6 @@ mercurial/wireproto.py: error importing module: invalid syntax (bundle*.py, line *) (line *) (glob) tests/readlink.py: invalid syntax: invalid syntax (, line *) (glob) tests/test-demandimport.py: invalid syntax: invalid syntax (, line *) (glob) - tests/test-filelog.py: invalid syntax: Missing parentheses in call to 'print' (, line *) (glob) tests/test-hg-parseurl.py: invalid syntax: invalid syntax (, line *) (glob) tests/test-hgweb-auth.py: invalid syntax: invalid syntax (, line *) (glob) tests/test-hybridencode.py: invalid syntax: invalid syntax (, line *) (glob) diff --git a/tests/test-filelog.py b/tests/test-filelog.py --- a/tests/test-filelog.py +++ b/tests/test-filelog.py @@ -2,7 +2,7 @@ """ Tests the behavior of filelog w.r.t. data starting with '\1\n' """ -from __future__ import absolute_import +from __future__ import absolute_import, print_function from mercurial import ( hg, ui, @@ -37,7 +37,7 @@ def addrev(text, renamed=False): lock.release() def error(text): - print 'ERROR: ' + text + print('ERROR: ' + text) textwith = '\1\nfoo' without = 'foo' @@ -59,4 +59,4 @@ if fl.cmp(node, textwith) or not fl.cmp( if fl.size(1) != len(textwith): error('filelog.size for a renaming + data starting with \\1\\n') -print 'OK.' +print('OK.')