##// 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 tests/test-context.py requires print_function
92 tests/test-context.py requires print_function
93 tests/test-demandimport.py not using absolute_import
93 tests/test-demandimport.py not using absolute_import
94 tests/test-demandimport.py requires print_function
94 tests/test-demandimport.py requires print_function
95 tests/test-dispatch.py requires print_function
96 tests/test-doctest.py not using absolute_import
95 tests/test-doctest.py not using absolute_import
97 tests/test-duplicateoptions.py not using absolute_import
96 tests/test-duplicateoptions.py not using absolute_import
98 tests/test-duplicateoptions.py requires print_function
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 import os
2 import os
3 from mercurial import (
3 from mercurial import (
4 dispatch,
4 dispatch,
@@ -9,11 +9,10 b' def testdispatch(cmd):'
9
9
10 Prints command and result value, but does not handle quoting.
10 Prints command and result value, but does not handle quoting.
11 """
11 """
12 print "running: %s" % (cmd,)
12 print("running: %s" % (cmd,))
13 req = dispatch.request(cmd.split())
13 req = dispatch.request(cmd.split())
14 result = dispatch.dispatch(req)
14 result = dispatch.dispatch(req)
15 print "result: %r" % (result,)
15 print("result: %r" % (result,))
16
17
16
18 testdispatch("init test1")
17 testdispatch("init test1")
19 os.chdir('test1')
18 os.chdir('test1')
General Comments 0
You need to be logged in to leave comments. Login now