[tests] Recommend f-strings for formatting, update feature_block to use them

This commit is contained in:
Anthony Towns committed 2020-11-09 17:53:50 +10:00
1 parent 8ae9d314e9
commit 97c738ff1b
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ don't have test cases for.
- When subclassing the BitcoinTestFramework, place overrides for the
`set_test_params()`, `add_options()` and `setup_xxxx()` methods at the top of
the subclass, then locally-defined helper methods, then the `run_test()` method.
- Use `'{}'.format(x)` for string formatting, not `'%s' % x`.
- Use `f'{x}'` for string formatting in preference to `'{}'.format(x)` or `'%s' % x`.
#### Naming guidelines