Show More
@@ -450,6 +450,7 b' test-tag.t' | |||||
450 | test-tags.t |
|
450 | test-tags.t | |
451 | test-template-engine.t |
|
451 | test-template-engine.t | |
452 | test-treemanifest.t |
|
452 | test-treemanifest.t | |
|
453 | test-ui-color.py | |||
453 | test-unamend.t |
|
454 | test-unamend.t | |
454 | test-uncommit.t |
|
455 | test-uncommit.t | |
455 | test-unified-test.t |
|
456 | test-unified-test.t |
@@ -5,6 +5,9 b' from mercurial import (' | |||||
5 | dispatch, |
|
5 | dispatch, | |
6 | ui as uimod, |
|
6 | ui as uimod, | |
7 | ) |
|
7 | ) | |
|
8 | from mercurial.utils import ( | |||
|
9 | stringutil, | |||
|
10 | ) | |||
8 |
|
11 | |||
9 | # ensure errors aren't buffered |
|
12 | # ensure errors aren't buffered | |
10 | testui = uimod.ui() |
|
13 | testui = uimod.ui() | |
@@ -12,7 +15,7 b' testui.pushbuffer()' | |||||
12 | testui.write((b'buffered\n')) |
|
15 | testui.write((b'buffered\n')) | |
13 | testui.warn((b'warning\n')) |
|
16 | testui.warn((b'warning\n')) | |
14 | testui.write_err(b'error\n') |
|
17 | testui.write_err(b'error\n') | |
15 |
print( |
|
18 | print(stringutil.pprint(testui.popbuffer()).decode('ascii')) | |
16 |
|
19 | |||
17 | # test dispatch.dispatch with the same ui object |
|
20 | # test dispatch.dispatch with the same ui object | |
18 | hgrc = open(os.environ["HGRCPATH"], 'wb') |
|
21 | hgrc = open(os.environ["HGRCPATH"], 'wb') | |
@@ -35,4 +38,3 b' runcmd()' | |||||
35 | print("colored? %s" % (ui_._colormode is not None)) |
|
38 | print("colored? %s" % (ui_._colormode is not None)) | |
36 | runcmd() |
|
39 | runcmd() | |
37 | print("colored? %s" % (ui_._colormode is not None)) |
|
40 | print("colored? %s" % (ui_._colormode is not None)) | |
38 |
|
General Comments 0
You need to be logged in to leave comments.
Login now