tests/test-ui-color.py
changeset 51686 493034cc3265
parent 48875 6000f5b25c9b
child 51696 7f0cb9ee0534
equal deleted inserted replaced
51685:39e2b2d062c1 51686:493034cc3265
    23 ui_.setconfig(b'ui', b'formatted', b'True')
    23 ui_.setconfig(b'ui', b'formatted', b'True')
    24 
    24 
    25 # we're not interested in the output, so write that to devnull
    25 # we're not interested in the output, so write that to devnull
    26 ui_.fout = open(os.devnull, 'wb')
    26 ui_.fout = open(os.devnull, 'wb')
    27 
    27 
       
    28 
    28 # call some arbitrary command just so we go through
    29 # call some arbitrary command just so we go through
    29 # color's wrapped _runcommand twice.
    30 # color's wrapped _runcommand twice.
    30 def runcmd():
    31 def runcmd():
    31     dispatch.dispatch(dispatch.request([b'version', b'-q'], ui_))
    32     dispatch.dispatch(dispatch.request([b'version', b'-q'], ui_))
    32 
    33