changeset 28405:1d9d29d4813a

tests: test-dispatch use print_function
author timeless <timeless@mozdev.org>
date Tue, 08 Mar 2016 20:57:40 +0000
parents 06245740b408
children 0767c2f624c6
files tests/test-check-py3-compat.t tests/test-dispatch.py
diffstat 2 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-check-py3-compat.t	Tue Mar 08 20:57:15 2016 +0000
+++ b/tests/test-check-py3-compat.t	Tue Mar 08 20:57:40 2016 +0000
@@ -92,7 +92,6 @@
   tests/test-context.py requires print_function
   tests/test-demandimport.py not using absolute_import
   tests/test-demandimport.py requires print_function
-  tests/test-dispatch.py requires print_function
   tests/test-doctest.py not using absolute_import
   tests/test-duplicateoptions.py not using absolute_import
   tests/test-duplicateoptions.py requires print_function
--- a/tests/test-dispatch.py	Tue Mar 08 20:57:15 2016 +0000
+++ b/tests/test-dispatch.py	Tue Mar 08 20:57:40 2016 +0000
@@ -1,4 +1,4 @@
-from __future__ import absolute_import
+from __future__ import absolute_import, print_function
 import os
 from mercurial import (
     dispatch,
@@ -9,11 +9,10 @@
 
     Prints command and result value, but does not handle quoting.
     """
-    print "running: %s" % (cmd,)
+    print("running: %s" % (cmd,))
     req = dispatch.request(cmd.split())
     result = dispatch.dispatch(req)
-    print "result: %r" % (result,)
-
+    print("result: %r" % (result,))
 
 testdispatch("init test1")
 os.chdir('test1')