Page MenuHomePhabricator

test: use f-strings in feature_* tests (part 3, with flynt)
ClosedPublic

Authored by PiRK on Feb 28 2023, 15:59.

Details

Summary

Inspired by core#22229 (see D13187 and D13184)

Scripted diff:

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

Manual changes:

  • replace a "{1}" with "1"
  • remove explicit string conversion inside placeholders (f"{str(foo}" -> f"{foo}")

Depends on D13190

Test Plan

test/functional/test_runner.py feature_*

Event Timeline

PiRK requested review of this revision.Feb 28 2023, 15:59
Fabien requested changes to this revision.Feb 28 2023, 16:26
Fabien added a subscriber: Fabien.
Fabien added inline comments.
test/functional/feature_minchainwork.py
50
This revision now requires changes to proceed.Feb 28 2023, 16:26
PiRK edited the summary of this revision. (Show Details)

while I'm doing manual changes, also remove unnecessary str(...) conversions

This revision is now accepted and ready to land.Mar 1 2023, 08:54