From 83b292b80bba0976aee75c25ea32ba50ead66954 Mon Sep 17 00:00:00 2001 From: Sam Clements Date: Sat, 2 Dec 2023 16:31:05 +0000 Subject: [PATCH] Fix new flake8 linter errors --- colorlog/tests/test_colorlog.py | 2 +- colorlog/tests/test_config.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/colorlog/tests/test_colorlog.py b/colorlog/tests/test_colorlog.py index db9d46c..82d6b6e 100644 --- a/colorlog/tests/test_colorlog.py +++ b/colorlog/tests/test_colorlog.py @@ -17,7 +17,7 @@ def test_custom_colors(create_and_test_logger): def test_reset(create_and_test_logger): - create_and_test_logger(reset=True, validator=lambda l: l.endswith("\x1b[0m")) + create_and_test_logger(reset=True, validator=lambda line: line.endswith("\x1b[0m")) def test_no_reset(create_and_test_logger): diff --git a/colorlog/tests/test_config.py b/colorlog/tests/test_config.py index e6f281f..332dcf4 100644 --- a/colorlog/tests/test_config.py +++ b/colorlog/tests/test_config.py @@ -12,7 +12,7 @@ def path(filename): def test_build_from_file(test_logger): logging.config.fileConfig(path("test_config.ini")) - test_logger(logging.getLogger(), lambda l: ":test_config.ini" in l) + test_logger(logging.getLogger(), lambda line: ":test_config.ini" in line) def test_build_from_dictionary(test_logger): @@ -40,4 +40,4 @@ def test_build_from_dictionary(test_logger): }, } ) - test_logger(logging.getLogger(), lambda l: ":dict" in l) + test_logger(logging.getLogger(), lambda line: ":dict" in line)