Skip to content

Commit 2897fc9

Browse files
committed
Removed unused ParamSpec and added a consistency check in the tests.
1 parent be7cb78 commit 2897fc9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

beets/logging.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,6 @@
6060
T = TypeVar("T")
6161

6262

63-
P = ParamSpec("P")
64-
65-
6663
def _logsafe(val: T) -> str | T:
6764
"""Coerce `bytes` to `str` to avoid crashes solely due to logging.
6865

test/test_logging.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ def test_str_format_logging(
6262
with caplog.at_level(level, logger="test_logger"):
6363
logger.log(level, msg, *args, **kwargs)
6464

65+
assert caplog.records, "No log records were captured"
6566
assert str(caplog.records[0].msg) == expected
6667

6768

0 commit comments

Comments
 (0)