--- a/tests/test-ui-color.py Sat Oct 05 10:29:34 2019 -0400
+++ b/tests/test-ui-color.py Sun Oct 06 09:45:02 2019 -0400
@@ -5,15 +5,13 @@
dispatch,
ui as uimod,
)
-from mercurial.utils import (
- stringutil,
-)
+from mercurial.utils import stringutil
# ensure errors aren't buffered
testui = uimod.ui()
testui.pushbuffer()
-testui.write((b'buffered\n'))
-testui.warn((b'warning\n'))
+testui.write(b'buffered\n')
+testui.warn(b'warning\n')
testui.write_err(b'error\n')
print(stringutil.pprint(testui.popbuffer(), bprefix=True).decode('ascii'))
@@ -34,6 +32,7 @@
def runcmd():
dispatch.dispatch(dispatch.request([b'version', b'-q'], ui_))
+
runcmd()
print("colored? %s" % (ui_._colormode is not None))
runcmd()