Skip to content

Commit

Permalink
Fix new flake8 linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
borntyping committed Dec 2, 2023
1 parent f2a927c commit 83b292b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion colorlog/tests/test_colorlog.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
4 changes: 2 additions & 2 deletions colorlog/tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down Expand Up @@ -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)

0 comments on commit 83b292b

Please sign in to comment.