Page MenuHomePhabricator

[backport#12437] [Trivial] Simplify if-else blocks and more descriptive variable naming
ClosedPublic

Authored by majcosta on Oct 31 2020, 20:22.

Details

Summary

97bcd36811 [Trivial] Simplify if-else blocks and more descriptive variable naming (Jeff Rade)

Pull request description:

Was looking through `test_runner.py` to start work on [#11964](https://github.com/bitcoin/bitcoin/issues/11964).  Made a few changes to make the file more readable and keep these separate from future PR.

Backport of Core PR12437

Test Plan
ninja all
test_runner --extended|no parameters|list_of_tests|-x list_of_tests

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Fabien requested changes to this revision.Nov 1 2020, 09:05
Fabien added a subscriber: Fabien.
Fabien added inline comments.
test/functional/test_runner.py
295 ↗(On Diff #25316)

This change just adds a new code duplication, revert

847 ↗(On Diff #25316)

Note: https://github.com/bitcoin/bitcoin/pull/12720
Not a problem here as we enforce python 3

This revision now requires changes to proceed.Nov 1 2020, 09:05
This revision is now accepted and ready to land.Nov 1 2020, 12:05