Skip to content

Commit 83b292b

Browse files
committed
Fix new flake8 linter errors
1 parent f2a927c commit 83b292b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

colorlog/tests/test_colorlog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_custom_colors(create_and_test_logger):
1717

1818

1919
def test_reset(create_and_test_logger):
20-
create_and_test_logger(reset=True, validator=lambda l: l.endswith("\x1b[0m"))
20+
create_and_test_logger(reset=True, validator=lambda line: line.endswith("\x1b[0m"))
2121

2222

2323
def test_no_reset(create_and_test_logger):

colorlog/tests/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ def path(filename):
1212

1313
def test_build_from_file(test_logger):
1414
logging.config.fileConfig(path("test_config.ini"))
15-
test_logger(logging.getLogger(), lambda l: ":test_config.ini" in l)
15+
test_logger(logging.getLogger(), lambda line: ":test_config.ini" in line)
1616

1717

1818
def test_build_from_dictionary(test_logger):
@@ -40,4 +40,4 @@ def test_build_from_dictionary(test_logger):
4040
},
4141
}
4242
)
43-
test_logger(logging.getLogger(), lambda l: ":dict" in l)
43+
test_logger(logging.getLogger(), lambda line: ":dict" in line)

0 commit comments

Comments
 (0)