# HG changeset patch # User Robert Stanca # Date 2016-04-03 13:58:43 # Node ID e8ecd1aa3f6ccdc49fd0a7782e808f608562b322 # Parent d289b8847f239af9b500b8706dffddf131733acf py3: use print_function in test-duplicateoptions.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-duplicateoptions.py requires print_function tests/test-filecache.py not using absolute_import tests/test-filecache.py requires print_function tests/test-filelog.py not using absolute_import @@ -247,7 +246,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-duplicateoptions.py: invalid syntax: invalid syntax (, line *) (glob) tests/test-filecache.py: invalid syntax: Missing parentheses in call to 'print' (, 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) diff --git a/tests/test-duplicateoptions.py b/tests/test-duplicateoptions.py --- a/tests/test-duplicateoptions.py +++ b/tests/test-duplicateoptions.py @@ -1,4 +1,4 @@ -from __future__ import absolute_import +from __future__ import absolute_import, print_function import os from mercurial import ( commands, @@ -36,6 +36,6 @@ for cmd, entry in commands.table.iterite for option in entry[1]: if (option[0] and option[0] in seenshort) or \ (option[1] and option[1] in seenlong): - print "command '" + cmd + "' has duplicate option " + str(option) + print("command '" + cmd + "' has duplicate option " + str(option)) seenshort.add(option[0]) seenlong.add(option[1])