mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
pytest: remove flake8 warnings for tests/fixtures.py
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -147,6 +147,7 @@ def teardown_checks(request):
|
|||||||
request.node.has_errors = True
|
request.node.has_errors = True
|
||||||
raise ValueError(str(errors))
|
raise ValueError(str(errors))
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def node_factory(request, directory, test_name, bitcoind, executor, teardown_checks):
|
def node_factory(request, directory, test_name, bitcoind, executor, teardown_checks):
|
||||||
nf = NodeFactory(
|
nf = NodeFactory(
|
||||||
@@ -157,7 +158,6 @@ def node_factory(request, directory, test_name, bitcoind, executor, teardown_che
|
|||||||
)
|
)
|
||||||
|
|
||||||
yield nf
|
yield nf
|
||||||
err_count = 0
|
|
||||||
ok, errs = nf.killall([not n.may_fail for n in nf.nodes])
|
ok, errs = nf.killall([not n.may_fail for n in nf.nodes])
|
||||||
|
|
||||||
for e in errs:
|
for e in errs:
|
||||||
|
|||||||
Reference in New Issue
Block a user