Page MenuHomePhabricator

Refactor the imports in abc-* tests
ClosedPublic

Authored by Fabien on Feb 24 2019, 16:50.

Details

Summary

Remove all the import *, fix imports from messages and make the layout
consistent across tests.
This will later allow for more checks using flake8.
There is no functional change.

Test Plan
./test/functional/test_runner.py abc-*

Diff Detail

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

Event Timeline

test/functional/abc-mempool-accept-txn.py
41 ↗(On Diff #7449)

This is really bad. Highly verbose and will create a ton of error for no benefit. What's the upside here ? Having to list every opcode than one uses do not seems to add a lot of value to me.

test/functional/abc-mempool-accept-txn.py
41 ↗(On Diff #7449)

This will allow for detection of undefined symbols with flake8. These detections are made impossible when importing all with a star.
In the end this changes plus some other to follow are an equivalent to core PR13054.

This revision is now accepted and ready to land.Feb 25 2019, 23:08
This revision was automatically updated to reflect the committed changes.