# HG changeset patch # User Robert Stanca # Date 2016-04-04 02:20:40 # Node ID 7f7cd44cd6d5fe26a61d97a16e65e95563e81d2e # Parent 7779f9dfd938f71204fb4e5eaa3941291e7ff95f py3: use print_function in test-status-inprocess.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 @@ -64,7 +64,6 @@ tests/test-pathencode.py requires print_function tests/test-run-tests.py not using absolute_import tests/test-simplemerge.py not using absolute_import - tests/test-status-inprocess.py requires print_function tests/test-symlink-os-yes-fs-no.py not using absolute_import tests/test-trusted.py not using absolute_import tests/test-trusted.py requires print_function @@ -228,7 +227,6 @@ tests/readlink.py: invalid syntax: invalid syntax (, line *) (glob) tests/test-demandimport.py: invalid syntax: invalid syntax (, line *) (glob) tests/test-lrucachedict.py: invalid syntax: invalid syntax (, line *) (glob) - tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (, line *) (glob) tests/test-trusted.py: invalid syntax: invalid syntax (, line *) (glob) #endif diff --git a/tests/test-status-inprocess.py b/tests/test-status-inprocess.py --- a/tests/test-status-inprocess.py +++ b/tests/test-status-inprocess.py @@ -1,5 +1,5 @@ #!/usr/bin/python -from __future__ import absolute_import +from __future__ import absolute_import, print_function from mercurial.ui import ( ui, ) @@ -14,7 +14,7 @@ from mercurial.commands import ( u = ui() -print '% creating repo' +print('% creating repo') repo = localrepository(u, '.', create=True) f = open('test.py', 'w') @@ -23,13 +23,13 @@ try: finally: f.close -print '% add and commit' +print('% add and commit') add(u, repo, 'test.py') commit(u, repo, message='*') status(u, repo, clean=True) -print '% change' +print('% change') f = open('test.py', 'w') try: f.write('bar\n')