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)