Mercurial > public > mercurial-scm > hg
comparison tests/test-ui-color.py @ 51686:493034cc3265
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 | 6000f5b25c9b |
children | 7f0cb9ee0534 |
comparison
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 |