From 8f84c324bd95ff6029f29258004e44dc9d6ae657 Mon Sep 17 00:00:00 2001 From: Jaspar S Date: Thu, 31 Mar 2022 11:03:23 +0200 Subject: [PATCH] Remove unused variable `_` --- tests/test_runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_runner.py b/tests/test_runner.py index fe10af48..8eb544e1 100644 --- a/tests/test_runner.py +++ b/tests/test_runner.py @@ -297,7 +297,7 @@ def test_runner_log_file(self): included_plugins=included_plugins, log_file=gen_log_file, ) - with redirect_stdout(io.StringIO()) as _: + with redirect_stdout(io.StringIO()): runner.run([nasl_file]) compare_content = ( @@ -328,7 +328,7 @@ def test_runner_log_file_fail(self): included_plugins=included_plugins, log_file=gen_log_file, ) - with redirect_stdout(io.StringIO()) as _: + with redirect_stdout(io.StringIO()): runner.run([nasl_file]) compare_content = (