From ddab2cb2878a3da05f93fcb4f795ee881adabf4e Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 7 Sep 2019 14:22:03 +0930 Subject: [PATCH] pytest: remove flake8 warnings for tests/fixtures.py Signed-off-by: Rusty Russell --- tests/fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fixtures.py b/tests/fixtures.py index a8288bf91..f6c4456c6 100644 --- a/tests/fixtures.py +++ b/tests/fixtures.py @@ -147,6 +147,7 @@ def teardown_checks(request): request.node.has_errors = True raise ValueError(str(errors)) + @pytest.fixture def node_factory(request, directory, test_name, bitcoind, executor, teardown_checks): nf = NodeFactory( @@ -157,7 +158,6 @@ def node_factory(request, directory, test_name, bitcoind, executor, teardown_che ) yield nf - err_count = 0 ok, errs = nf.killall([not n.may_fail for n in nf.nodes]) for e in errs: