Skip to content

Commit

Permalink
style: suppress warnings for unused variables in tests
Browse files Browse the repository at this point in the history
- Add 'noqa: F841' comments to suppress warnings for unused variables in test_multiple_loggers_exception_handling and test_keyboard_interrupt_handling.

This change improves code quality by reducing linting warnings without altering the functionality of the tests.
  • Loading branch information
Undertone0809 committed Nov 7, 2024
1 parent aa8647d commit ccf69f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ def test_exception_handler_registration():


def test_multiple_loggers_exception_handling():
logger1 = Logger("test1")
logger2 = Logger("test2")
logger1 = Logger("test1") # noqa: F841
logger2 = Logger("test2") # noqa: F841

try:
raise ValueError("Test multi-logger exception")
Expand Down Expand Up @@ -128,8 +128,8 @@ def test_multiple_loggers_exception_handling():


def test_keyboard_interrupt_handling():
logger1 = Logger("test1")
logger2 = Logger("test2")
logger1 = Logger("test1") # noqa: F841
logger2 = Logger("test2") # noqa: F841

# Test KeyboardInterrupt handling
ExceptionHandler.handle_exception(KeyboardInterrupt, KeyboardInterrupt(), None)
Expand Down

0 comments on commit ccf69f5

Please sign in to comment.