HomePhabricator

test: use f-strings in rpc_* tests

Description

test: use f-strings in rpc_* tests

Summary:
scripted diff

flynt --transform-concats test/functional/rpc_*

Manual edits:

  • remove unnecessary string formatting (f"{-1}" -> "-1")
  • convert more "...".format(..) instances to f-strings. These were missed by flynt presumably because it sometimes cannot understand multiline strings formatted by autopep8

Depends on D13196

Test Plan: test/functional/test_runner.py rpc_*

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D13197

Details

Provenance
PiRKAuthored on Feb 28 2023, 14:16
PiRKPushed on Mar 1 2023, 09:38
Reviewer
Restricted Project
Differential Revision
D13197: test: use f-strings in rpc_* tests
Parents
rABCdb2b26d839c6: test: use f-strings in p2p_* tests
Branches
Unknown
Tags
Unknown