diff --git a/beets/logging.py b/beets/logging.py index 29357c0f0..086a590a0 100644 --- a/beets/logging.py +++ b/beets/logging.py @@ -40,8 +40,6 @@ from logging import ( ) from typing import TYPE_CHECKING, Any, Mapping, TypeVar, overload -from typing_extensions import ParamSpec - __all__ = [ "DEBUG", "INFO", @@ -60,9 +58,6 @@ if TYPE_CHECKING: T = TypeVar("T") -P = ParamSpec("P") - - def _logsafe(val: T) -> str | T: """Coerce `bytes` to `str` to avoid crashes solely due to logging. diff --git a/test/test_logging.py b/test/test_logging.py index 4a62e3a3b..f4dda331e 100644 --- a/test/test_logging.py +++ b/test/test_logging.py @@ -62,6 +62,7 @@ class TestStrFormatLogger: with caplog.at_level(level, logger="test_logger"): logger.log(level, msg, *args, **kwargs) + assert caplog.records, "No log records were captured" assert str(caplog.records[0].msg) == expected