Page MenuHomePhabricator

Update test_framework scripts to use the new .format() method
ClosedPublic

Authored by Fabien on Feb 19 2019, 16:26.

Details

Summary

Avoid using % to format strings, switch to the new method instead.

Test Plan
./test/functional/test_runner.py --extended

Diff Detail

Repository
rABC Bitcoin ABC
Branch
fix_python_format_test_framework
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 5027
Build 8117: Bitcoin ABC Buildbot (legacy)
Build 8116: arc lint + arc unit

Event Timeline

test/functional/test_framework/authproxy.py
54

Is that correct ?

Fix wrong format in JSONRPCException

test/functional/test_framework/authproxy.py
54

No, good catch. I get confused between named args and dictionary keys, this is now fixed.

This revision is now accepted and ready to land.Feb 22 2019, 15:09
This revision was automatically updated to reflect the committed changes.