##// END OF EJS Templates
tests: test-dispatch use print_function
timeless -
r28405:1d9d29d4 default
parent child Browse files
Show More
@@ -92,7 +92,6 b''
92 92 tests/test-context.py requires print_function
93 93 tests/test-demandimport.py not using absolute_import
94 94 tests/test-demandimport.py requires print_function
95 tests/test-dispatch.py requires print_function
96 95 tests/test-doctest.py not using absolute_import
97 96 tests/test-duplicateoptions.py not using absolute_import
98 97 tests/test-duplicateoptions.py requires print_function
@@ -1,4 +1,4 b''
1 from __future__ import absolute_import
1 from __future__ import absolute_import, print_function
2 2 import os
3 3 from mercurial import (
4 4 dispatch,
@@ -9,11 +9,10 b' def testdispatch(cmd):'
9 9
10 10 Prints command and result value, but does not handle quoting.
11 11 """
12 print "running: %s" % (cmd,)
12 print("running: %s" % (cmd,))
13 13 req = dispatch.request(cmd.split())
14 14 result = dispatch.dispatch(req)
15 print "result: %r" % (result,)
16
15 print("result: %r" % (result,))
17 16
18 17 testdispatch("init test1")
19 18 os.chdir('test1')
General Comments 0
You need to be logged in to leave comments. Login now