comparison tests/test-ui-color.py @ 51699:ca7bde5dbafb

black: format the codebase with 23.3.0 The CI has moved to 23.3.0, which is the last version that supports 3.7 at runtime, so we should honor this change. # skip-blame mass-reformating only
author Rapha?l Gom?s <rgomes@octobus.net>
date Thu, 18 Jul 2024 12:36:12 +0200
parents 7f0cb9ee0534
children
comparison
equal deleted inserted replaced
51698:b0a4de6c14f8 51699:ca7bde5dbafb
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