Show More
@@ -108,7 +108,6 b'' | |||||
108 | tests/test-trusted.py not using absolute_import |
|
108 | tests/test-trusted.py not using absolute_import | |
109 | tests/test-trusted.py requires print_function |
|
109 | tests/test-trusted.py requires print_function | |
110 | tests/test-ui-color.py not using absolute_import |
|
110 | tests/test-ui-color.py not using absolute_import | |
111 | tests/test-ui-color.py requires print_function |
|
|||
112 | tests/test-url.py not using absolute_import |
|
111 | tests/test-url.py not using absolute_import | |
113 |
|
112 | |||
114 | #if py3exe |
|
113 | #if py3exe | |
@@ -290,6 +289,5 b'' | |||||
290 | tests/test-revlog-ancestry.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob) |
|
289 | tests/test-revlog-ancestry.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob) | |
291 | tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob) |
|
290 | tests/test-status-inprocess.py: invalid syntax: Missing parentheses in call to 'print' (<unknown>, line *) (glob) | |
292 | tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) |
|
291 | tests/test-trusted.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) | |
293 | tests/test-ui-color.py: invalid syntax: invalid syntax (<unknown>, line *) (glob) |
|
|||
294 |
|
292 | |||
295 | #endif |
|
293 | #endif |
@@ -1,3 +1,4 b'' | |||||
|
1 | from __future__ import print_function | |||
1 | import os |
|
2 | import os | |
2 | from hgext import color |
|
3 | from hgext import color | |
3 | from mercurial import dispatch, ui |
|
4 | from mercurial import dispatch, ui | |
@@ -8,7 +9,7 b' testui.pushbuffer()' | |||||
8 | testui.write(('buffered\n')) |
|
9 | testui.write(('buffered\n')) | |
9 | testui.warn(('warning\n')) |
|
10 | testui.warn(('warning\n')) | |
10 | testui.write_err('error\n') |
|
11 | testui.write_err('error\n') | |
11 |
print |
|
12 | print(repr(testui.popbuffer())) | |
12 |
|
13 | |||
13 | # test dispatch.dispatch with the same ui object |
|
14 | # test dispatch.dispatch with the same ui object | |
14 | hgrc = open(os.environ["HGRCPATH"], 'w') |
|
15 | hgrc = open(os.environ["HGRCPATH"], 'w') | |
@@ -28,6 +29,6 b' def runcmd():' | |||||
28 | dispatch.dispatch(dispatch.request(['version', '-q'], ui_)) |
|
29 | dispatch.dispatch(dispatch.request(['version', '-q'], ui_)) | |
29 |
|
30 | |||
30 | runcmd() |
|
31 | runcmd() | |
31 |
print |
|
32 | print("colored? " + str(issubclass(ui_.__class__, color.colorui))) | |
32 | runcmd() |
|
33 | runcmd() | |
33 |
print |
|
34 | print("colored? " + str(issubclass(ui_.__class__, color.colorui))) |
General Comments 0
You need to be logged in to leave comments.
Login now