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