##// END OF EJS Templates
py3: make test-ui-verbosity use print_function
Pulkit Goyal -
r28678:870dae78 default
parent child Browse files
Show More
@@ -112,7 +112,6 b''
112 tests/test-ui-config.py not using absolute_import
112 tests/test-ui-config.py not using absolute_import
113 tests/test-ui-config.py requires print_function
113 tests/test-ui-config.py requires print_function
114 tests/test-ui-verbosity.py not using absolute_import
114 tests/test-ui-verbosity.py not using absolute_import
115 tests/test-ui-verbosity.py requires print_function
116 tests/test-url.py not using absolute_import
115 tests/test-url.py not using absolute_import
117
116
118 #if py3exe
117 #if py3exe
@@ -296,6 +295,5 b''
296 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
295 tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
297 tests/test-ui-color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
296 tests/test-ui-color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
298 tests/test-ui-config.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
297 tests/test-ui-config.py: invalid syntax: invalid syntax (<unknown>, line *) (glob)
299 tests/test-ui-verbosity.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob)
300
298
301 #endif
299 #endif
@@ -1,3 +1,5 b''
1 from __future__ import print_function
2
1 import os
3 import os
2 from mercurial import ui
4 from mercurial import ui
3
5
@@ -6,8 +8,8 b' f = open(hgrc)'
6 basehgrc = f.read()
8 basehgrc = f.read()
7 f.close()
9 f.close()
8
10
9 print ' hgrc settings command line options final result '
11 print(' hgrc settings command line options final result ')
10 print ' quiet verbo debug quiet verbo debug quiet verbo debug'
12 print(' quiet verbo debug quiet verbo debug quiet verbo debug')
11
13
12 for i in xrange(64):
14 for i in xrange(64):
13 hgrc_quiet = bool(i & 1<<0)
15 hgrc_quiet = bool(i & 1<<0)
@@ -41,7 +43,7 b' for i in xrange(64):'
41 elif u.verbose and u.quiet:
43 elif u.verbose and u.quiet:
42 check = ' +'
44 check = ' +'
43
45
44 print ('%2d %5s %5s %5s %5s %5s %5s -> %5s %5s %5s%s'
46 print(('%2d %5s %5s %5s %5s %5s %5s -> %5s %5s %5s%s'
45 % (i, hgrc_quiet, hgrc_verbose, hgrc_debug,
47 % (i, hgrc_quiet, hgrc_verbose, hgrc_debug,
46 cmd_quiet, cmd_verbose, cmd_debug,
48 cmd_quiet, cmd_verbose, cmd_debug,
47 u.quiet, u.verbose, u.debugflag, check))
49 u.quiet, u.verbose, u.debugflag, check)))
General Comments 0
You need to be logged in to leave comments. Login now